How iamrellzera/ecommercesystem works
EcommerceSystem is a PHP/MySQL catalog with a customer storefront and an admin CRUD/order-management area. Customers browse and filter products, add items to a session cart, submit delivery details, and receive an order confirmation; administrators manage catalog data and orders. The graph includes shared helpers, page layouts, and persistence. Some admin capabilities are documented or named in the source index but were not sampled in full, so their internal links are omitted where evidence is unavailable.
Main entry points: checkout.php Checkout and order creation · index.php Catalog and search · cart.php Session cart · db_connect.php PDO connection
Components 26
Customer storefront
- Catalog and search
index.php - Product details
product.php
Cart and orders
- Session cart
cart.php - Checkout and order creation
checkout.php - Order confirmation
order_success.php
Administration
- Category management
categories.php - Category editing
edit_category.php - Category deletion
delete_category.php - Product management
admin_products.php - Product creation
add_product.php - Product editing
edit_product.php - Product deletion
delete_product.php - Product form
product_form.php - Admin access
admin_login.php - Admin dashboard
admin_dashboard.php - Order list
admin_orders.php - Order review
admin_order_view.php
Shared runtime
- MySQL database
database.sql.sql - PDO connection
db_connect.php - Session and validation helpers
functions.php - Store layout
store_header.php - Store footer
store_footer.php - Admin layout
header.php - Admin footer
footer.php
Other components
- Customer
- Administrator
Connections 37
- Customer → Catalog and search: browses and filters
index.php - Catalog and search → PDO connection: queries through
index.php - Catalog and search → MySQL database: reads products and categories
index.php - Catalog and search → Product details: opens product
index.php - Catalog and search → Session cart: adds item
index.php - Customer → Product details: views product
- Customer → Session cart: manages cart
cart.php - Session cart → PDO connection: loads products through
cart.php - Session cart → Session and validation helpers: loads cart items
cart.php - Session cart → Checkout and order creation: continues to checkout
- Customer → Checkout and order creation: submits order
checkout.php - Checkout and order creation → Session and validation helpers: loads cart items
checkout.php - Checkout and order creation → PDO connection: writes transaction through
checkout.php - Checkout and order creation → MySQL database: saves order and stock changes
checkout.php - Checkout and order creation → Order confirmation: redirects after commit
checkout.php - Administrator → Admin access: signs in
- Administrator → Admin dashboard: manages store
- Admin dashboard → PDO connection: queries through
admin_dashboard.php - Administrator → Category management: manages categories
categories.php - Category management → PDO connection: queries through
categories.php - Category management → Category editing: opens edit
categories.php - Category management → Category deletion: submits deletion
categories.php - Administrator → Product management: manages products
- Product creation → Product form: renders
add_product.php - Product editing → Product form: renders
edit_product.php - Administrator → Order list: reviews orders
- Order list → Order review: opens order
- Order review → PDO connection: updates through
admin_order_view.php - PDO connection → Session and validation helpers: loads
db_connect.php - Catalog and search → Store layout: renders with
index.php - Catalog and search → Store footer: renders with
index.php - Session cart → Store layout: renders with
cart.php - Session cart → Store footer: renders with
cart.php - Checkout and order creation → Store layout: renders with
checkout.php - Checkout and order creation → Store footer: renders with
checkout.php - Admin dashboard → Admin layout: renders with
admin_dashboard.php - Admin dashboard → Admin footer: renders with
admin_dashboard.php