Order Flow

Cart → Checkout → Order → Invoice → Payment

What it is

The order flow runs from cart to service activation. Clients add products to the cart, proceed to checkout, and either pay immediately (if order approval is disabled) or wait for admin approval (if enabled).

Flow diagram

  1. Cart: Client adds products (hosting, domains, add-ons). Configurable options and domain search happen here.
  2. Checkout: Client enters details (or logs in). processGuestCheckoutOrder() in includes/helpers/checkout.php creates the order and order items.
  3. Invoice: An invoice is generated for the order total.
  4. Payment: Client pays via Stripe, PayPal, bank transfer, etc. Payment is recorded in transactions.
  5. Activation: When paid (and approved if required), services are created and provisioning runs (server module create, registrar register).

Database tables

orders – order header (client_id, status, total). order_items – each product/domain/add-on in the order.

How to set up

Configure products, payment gateways, and order approval in Admin. The flow is automatic once configured.

Was this helpful?