How chihebabiza/php-multi-seller-ecommerce works
Project type and purpose
• This is a monolithic PHP-based multi-vendor marketplace (LAMP stack).
• It offers three “front-ends” in one codebase: the public client storefront, an admin dashboard, and a vendor (seller) panel.
• Core functionality: vendor registration & product management, customer browsing/cart/checkout, order processing, and admin oversight.
File structure
• Top-level directories:
• /client → public-facing storefront (browsing, search, cart, checkout).
• /admin → site-wide admin panel (manage users, products, vendor statuses).
• /vendor → (empty or reserved) seller dashboard.
• /config → DB connection & shared functions.
• /inc → reusable view fragments (header, footer, product card, etc.).
• /css, /js, /images → static assets.
• /uploads → product images or file uploads.
• /database → initial SQL dump.
• This is a single-repo monolith using include-based templating rather than a separated front/back-end API.
README for additional insights
• LAMP requirements, installation steps, features list (cart, auth, responsive UI).
Detailed element capture
• /client (browse, cart, checkout)
• /admin (user/product management)
• /vendor (product upload, order notifications)
• /config & /inc (shared utility & view code)
• Flow of a “Place Order” scenario:
1. Customer HTTP POST → /client/checkout.php
2. PHP validates, writes order rows to MySQL
3. PHP saves invoice/receipt to /uploads or temp
4. PHP invokes payment API & sends confirmation email
5. Customer sees thank you page (/client/thankyou.php)
• Flow of an “Add Product” scenario for Vendor:
1. Vendor HTTP POST → /vendor/product.php
2. Saves product metadata to MySQL & image to /uploads
3. Vendor sees updated product list