How safa-kaware/multivendor works
MultiVendor is a PHP/MySQL marketplace for customers, vendors, and administrators. The customer journey runs from discovery and product details through cart, checkout/payment, and order tracking; parallel branches cover account/wishlist/address services, vendor catalog and order tools, and marketplace administration. Shared app configuration supplies session, database, helpers, and authentication; the REST API has a separate stateless token bootstrap. README-documented features are included where their exact implementation paths appear in the tree. Unsampled internals and most cross-page writes are not inferred.
Main entry points: app.php MySQL database · index.php Home & banners · checkout.php Checkout & payment · search.php Search catalog
Components 24
Storefront & shopping
- Home & banners
index.php - Search catalog
search.php - Product details
product.php - Cart & coupons
cart.php - Checkout & payment
checkout.php - Order tracking
order-details.php
Identity & customer
- Wishlist
wishlist.php - Address book
addresses.php - Customer profile
profile.php
Vendor operations
- Vendor catalog tools
vendor-registrations.php - Vendor order tools
vendor-registrations.php
Marketplace administration
- Product administration
admin/product-edit.php - Vendor approvals
admin/vendors.php - Order administration
admin/orders.php - Reports & analytics
admin/reports.php - Marketplace controls
admin/banners.php
Shared services & API
- Authentication & roles
functions/auth_functions.php - App bootstrap
config/app.php - Storefront shell
includes/header.php - REST API endpoints
api/products.php - API token bootstrap
api/config.php - MySQL database
config/app.php
Other components
- Customer
- Stripe
Connections 33
- Customer → Home & banners: browses
- Customer → Search catalog: filters products
- Home & banners → Search catalog: links to
index.php - Search catalog → Product details: opens product
search.php - Customer → Product details: views details
- Customer → Cart & coupons: manages cart
- Cart & coupons → Checkout & payment: proceeds to
- Checkout & payment → Order tracking: creates order
- Checkout & payment → Stripe: optional card payment
- Customer → Wishlist: saves items
- Customer → Address book: manages addresses
- Customer → Customer profile: manages account
- Customer → Authentication & roles: registers or signs in
functions/auth_functions.php - Authentication & roles → MySQL database: reads and writes users
functions/auth_functions.php - Home & banners → App bootstrap: loads bootstrap
index.php - Search catalog → App bootstrap: loads bootstrap
search.php - Product details → App bootstrap: loads bootstrap
product.php - Cart & coupons → App bootstrap: loads bootstrap
cart.php - Checkout & payment → App bootstrap: loads bootstrap
checkout.php - Address book → App bootstrap: loads bootstrap
addresses.php - App bootstrap → MySQL database: configures connection
config/app.php - App bootstrap → Authentication & roles: loads auth helpers
config/app.php - Home & banners → Storefront shell: renders shell
index.php - Vendor catalog tools → MySQL database: manages catalog
- Vendor order tools → MySQL database: reads vendor orders
- Product administration → MySQL database: manages products
admin/product-edit.php - Vendor approvals → MySQL database: approves vendors
admin/vendors.php - Order administration → MySQL database: manages orders
- Reports & analytics → MySQL database: aggregates sales
- Marketplace controls → MySQL database: configures marketplace
admin/banners.php - REST API endpoints → API token bootstrap: loads token bootstrap
api/products.php - API token bootstrap → App bootstrap: loads app config
api/config.php - REST API endpoints → MySQL database: serves product data