Products Overview
Product definitions, categories, pricing
What it is
Products are service definitions that clients can order: shared hosting, VPS, domains, SSL certificates, add-ons, etc. Each product has a name, description, category, pricing per billing cycle, and optional server/registrar module for provisioning.
Database tables
| Table | Purpose |
|---|---|
products | id, name, slug, description, category_id, type (hosting/domain/other), server_id, module, registrar |
product_categories | id, name, slug – groups products (Hosting, Domains, etc.) |
product_pricing | product_id, cycle (monthly, quarterly, semi_annually, annually, one_time), price, setup_fee |
Billing cycles
Typical cycles: monthly, quarterly, semi_annually, annually, one_time. Use getProductPrice($productId, $cycle) to fetch the price for a given cycle.
How to set up
- Go to Admin → Products.
- Create product categories first (e.g. Hosting, Domains).
- Create products: name, description, category, type.
- Set pricing for each billing cycle (monthly, annually, etc.).
- For hosting: assign a server and module (e.g. cPanel).
- For domains: assign a registrar module.
Was this helpful?