How jahangirhussen/ecommerce-type-customer-invoice-order-management-system works
This PHP shop supports customer product discovery, cart and order placement, plus an admin workflow for catalog, inventory, customers, and order management. Shared functions provide product and order operations over a MySQL database; documented capabilities also include invoice generation, order tracking, and WhatsApp sharing. The tree and excerpts establish some module calls, while several page/API handoffs and unsampled capabilities are documented but not directly visible, so those links are dashed and marked unverified.
Main entry points: order-functions.php Order services · database.php MySQL database · product-functions.php Product services · functions.php Shared functions
Components 29
Customer shop
- Product browsing
customer/products.php - Catalog API
api/products.php - Search API
api/search.php - Category API
api/categories.php - Shopping cart
customer/cart.php - Cart API
api/cart.php - Checkout
customer/checkout.php - Order submission
api/checkout.php - Order confirmation
customer/success.php - Invoice
customer/invoice.php - Order tracking
customer/index.php - WhatsApp API
api/whatsapp.php
Shop administration
- Admin dashboard
admin/index.php - Catalog management
admin/products/index.php - Categories and brands
admin/categories/index.php - Inventory management
admin/products/inventory.php - Customer management
admin/customers/index.php - Order management
admin/orders/index.php - Shop settings
admin/settings/shop.php - WhatsApp settings
admin/settings/whatsapp.php
Application services
- Product services
includes/product-functions.php - Order services
includes/order-functions.php - Shared functions
includes/functions.php - Admin authentication
includes/auth.php - WhatsApp sharing
includes/whatsapp-functions.php
Persistence
- MySQL database
includes/database.php - Database configuration
config.php
Other components
- Shopper
- Administrator
Connections 36
- Shopper → Product browsing: browses
- Shopper → Shopping cart: manages cart
- Shopper → Checkout: places order
- Product browsing → Product services: queries products
customer/products.php - Catalog API → Product services: queries products
api/products.php - Cart API → Product services: uses products
api/cart.php - Search API → MySQL database: searches products
api/search.php - Category API → Shared functions: category data
- Checkout → Order submission: submits order
- Order submission → Order services: creates order
api/checkout.php - Order submission → Order confirmation: returns result
- Invoice → Order services: loads invoice
customer/invoice.php - Order tracking → Order services: tracks orders
- Shopper → WhatsApp API: shares order
- WhatsApp API → Order services: loads order
api/whatsapp.php - WhatsApp API → WhatsApp sharing: formats sharing
api/whatsapp.php - Administrator → Admin dashboard: reviews metrics
- Administrator → Catalog management: manages catalog
- Administrator → Inventory management: manages stock
- Administrator → Customer management: manages customers
- Administrator → Order management: manages orders
- Administrator → Shop settings: configures shop
- Administrator → WhatsApp settings: configures sharing
- Catalog management → Product services: loads products
admin/products/index.php - Categories and brands → Product services: loads brands
- Order management → Order services: updates orders
- Administrator → Admin authentication: authenticates
- Admin authentication → Shared functions: uses helpers
includes/auth.php - Product services → Shared functions: uses helpers
includes/product-functions.php - Order services → Shared functions: uses helpers
includes/order-functions.php - Shared functions → MySQL database: queries data
includes/functions.php - MySQL database → Database configuration: loads settings
includes/database.php - Admin dashboard → MySQL database: reads metrics
admin/index.php - Customer management → MySQL database: reads customers
admin/customers/index.php - Order management → MySQL database: reads orders
admin/orders/index.php - Order services → MySQL database: writes orders
includes/order-functions.php