Skip to content
developer

WooCommerce setup

Three custom statuses are registered in inc/order-statuses.php:

StatusSlugMeaning
Pending fulfilmentwc-pending-fulPayment confirmed, awaiting warehouse pick
Partially shippedwc-partial-shipMulti-item order, some items dispatched
Awaiting returnwc-return-waitReturn requested, item not yet received
  • VAT number field added to checkout for B2B customers — stored as order meta _vat_number
  • Postcode validation runs client-side via a custom JS validator before form submission
  • Guest checkout is disabled — customers must create an account (required by MemberPress)

Stripe is the sole payment method. The webhook endpoint is:

https://website-2.com/wc-api/WC_Gateway_Stripe

The webhook secret is stored in .env as STRIPE_WEBHOOK_SECRET. Do not rotate it without updating this value.

WooCommerce creates several high-write tables. Run the following periodically to keep them clean:

Terminal window
# Remove completed sessions older than 48h
wp wc clean --sessions
# Remove orphaned order items
wp wc clean --order-items