How dineshkadel/e_commerce-_website-about_-local-_mart works
Sasto Bazaar is a PHP storefront and administration platform for local retail. Customers browse the catalog, inspect products and reviews, add items to a cart, check out, then view or cancel orders; account endpoints support registration and login. Store staff manage products, categories, users and order status through the admin area. The sampled pages show direct PDO access to MySQL and product-image uploads. Cart, checkout, account-history and several admin implementations were not sampled, so their documented roles are shown without speculative internal wiring; wishlist and payment integrations are not represented as implemented subsystems.
Main entry points: dashboard.php Admin Dashboard · auth.html Account Page · db.php PDO Connection · index.php Store Home
Components 24
Customer Storefront
- Store Home
public/index.php - Product Catalog
public/products.php - Product Detail and Reviews
public/product.php - Add to Cart
public/add-to-cart.php - Shopping Cart
public/cart.php - Checkout
public/checkout.php - Order History
public/my-order.php - Cancel Order
public/cancel-order.php
Accounts
- Account Page
public/auth.html - Login API
public/api/login.php - Registration API
public/api/register.php - Logout API
public/api/logout.php
Store Operations
- Admin Dashboard
admin/dashboard.php - Product Management
admin/manage_products.php - Category Management
admin/manage_categories.php - Order Management
admin/manage_orders.php - User Management
admin/manage_users.php - Admin Authorization
admin/includes/auth.php
Data and Media
- PDO Connection
config/db.php - Schema Definition
config/tables.php - MySQL Store
- Product Images
upload/products
Other components
- Customer
- Store Staff
Connections 31
- Customer → Store Home: opens
- Store Home → Product Catalog: browses
- Product Catalog → Product Detail and Reviews: opens product
- Product Detail and Reviews → Add to Cart: adds item
- Add to Cart → Shopping Cart: updates cart
- Shopping Cart → Checkout: proceeds
- Checkout → Order History: places order
- Order History → Cancel Order: cancels order
- Customer → Account Page: opens account
- Account Page → Login API: submits login
- Account Page → Registration API: submits registration
- Account Page → Logout API: requests logout
- Store Staff → Admin Dashboard: opens admin
- Admin Dashboard → Product Management: manages products
- Admin Dashboard → Category Management: manages categories
- Admin Dashboard → Order Management: manages orders
- Admin Dashboard → User Management: manages users
- Product Management → Product Images: stores images
- Store Home → PDO Connection: connects
- Product Detail and Reviews → PDO Connection: connects
- Login API → PDO Connection: connects
- Registration API → PDO Connection: connects
- PDO Connection → MySQL Store: opens connection
- Schema Definition → MySQL Store: creates tables
- Store Home → MySQL Store: reads catalog and reviews
- Product Detail and Reviews → MySQL Store: reads product and reviews
- Login API → MySQL Store: reads user
- Registration API → MySQL Store: writes user
- Product Management → MySQL Store: manages products
- Order Management → MySQL Store: reads orders
- Admin Authorization → Account Page: redirects unauthenticated