How xnightm4re-cse/shopeasy-ecommerce works
ShopEasy is a PHP/MySQL online store with a customer storefront and a separately authenticated administration portal. The customer workflow runs from registration or login through catalog browsing, cart management, checkout, and order tracking; administrators manage inventory, categories, customers, and order status. Shared PHP helpers and the database connection support both areas. The graph uses sampled source and README capabilities; links for unsampled stages are documented rather than inferred from names alone.
Main entry points: cart.php Shopping Cart · index.php Home Page · checkout.php Checkout · products.php Product Catalog
Components 22
Customer Storefront
- Home Page
index.php - Product Catalog
products.php - Product Details
product-details.php - Customer Accounts
register.php - Account History
account.php
Purchase Lifecycle
- Shopping Cart
cart.php - Checkout
checkout.php - Order Tracking
orders.php - Order Confirmation
order-confirmation.php
Administration
- Admin Authentication
admin/login.php - Dashboard Analytics
admin/index.php - Product Management
admin/add-product.php - Category Management
admin/categories.php - Order Management
admin/orders.php - Customer Directory
admin/customers.php
Shared Services
- MySQL Database
- Database Connection
config/database.php - Session and Helpers
includes/functions.php - Customer Session Guard
includes/auth.php - Admin Session Guard
admin/includes/admin-auth.php
Other components
- Customer
- Administrator
Connections 35
- Customer → Home Page: browses
README.md - Home Page → Product Catalog: links to
index.php - Home Page → MySQL Database: queries featured items
index.php - Product Catalog → MySQL Database: queries products
README.md - Product Catalog → Product Details: opens details
- Product Details → Shopping Cart: posts add item
README.md - Customer → Customer Accounts: registers or signs in
README.md - Customer Accounts → MySQL Database: persists accounts
README.md - Customer Accounts → Customer Session Guard: uses customer session
README.md - Customer → Shopping Cart: manages items
cart.php - Shopping Cart → MySQL Database: reads stock and products
cart.php - Shopping Cart → Checkout: proceeds to checkout
cart.php - Checkout → MySQL Database: creates order and updates stock
README.md - Checkout → Customer Session Guard: requires customer login
README.md - Checkout → Order Confirmation: confirms purchase
README.md - Customer → Order Tracking: views orders
README.md - Order Tracking → MySQL Database: reads order history
README.md - Account History → MySQL Database: shows order history
README.md - Administrator → Admin Authentication: signs in
README.md - Admin Authentication → Admin Session Guard: uses admin session
admin/includes/admin-auth.php - Administrator → Dashboard Analytics: views analytics
README.md - Dashboard Analytics → MySQL Database: queries metrics and orders
admin/index.php - Administrator → Product Management: manages products
README.md - Product Management → MySQL Database: updates product listings
README.md - Administrator → Category Management: manages categories
README.md - Category Management → MySQL Database: updates categories
README.md - Administrator → Order Management: tracks orders
README.md - Order Management → MySQL Database: reads and updates statuses
admin/orders.php - Administrator → Customer Directory: views customers
README.md - Customer Directory → MySQL Database: reads customer accounts
README.md - Home Page → Session and Helpers: renders product cards
index.php - Database Connection → MySQL Database: opens connection
config/database.php - Shopping Cart → Database Connection: loads connection
cart.php - Dashboard Analytics → Database Connection: loads connection
admin/index.php - Admin Session Guard → Session and Helpers: loads shared helpers
admin/includes/admin-auth.php