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
- Cart: Client adds products (hosting, domains, add-ons). Configurable options and domain search happen here.
- Checkout: Client enters details (or logs in).
processGuestCheckoutOrder()inincludes/helpers/checkout.phpcreates the order and order items. - Invoice: An invoice is generated for the order total.
- Payment: Client pays via Stripe, PayPal, bank transfer, etc. Payment is recorded in
transactions. - 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?