How slayer-1010/shoe_shopping_system works
This is a PHP shoe-commerce website. Shoppers register or log in, browse products, add and adjust cart items, then check out; checkout records an order, updates stock, creates a PDF invoice, and redirects to confirmation. Account editing and admin catalog management are separate capabilities. The excerpts establish the main database and invoice relationships, but several endpoints and the confirmation implementation were not sampled, so their detailed connections are omitted.
Main entry points: db.php MySQL connection · checkout.php Order checkout · cart.php Cart view · login.php Sign in
Components 19
Accounts & profiles
- Sign in
login.php - Registration
register.php - Profile editing
edit_profile.php
Storefront & catalog
- Product storefront
index1.php - Home & profile
index.php - Product details
product_detail.php - About & brands
about.php - Catalog admin
admin.php
Cart & checkout
- Add to cart
add_to_cart.php - Cart view
cart.php - Shopping cart
shopping_cart.php - Update cart
update_cart.php - Remove item
remove_item.php - Order checkout
checkout.php - Order confirmation
confirmation.php
Data & documents
- MySQL connection
db.php - PDF generator
fpdf/fpdf.php - Invoice files
invoices
Other components
- Shopper
Connections 25
- Shopper → Sign in: signs in
login.php - Shopper → Registration: registers
register.php - Shopper → Product storefront: browses
- Shopper → Product details: views product
- Shopper → Profile editing: edits profile
- Registration → MySQL connection: stores account
register.php - Sign in → MySQL connection: checks credentials
login.php - Product storefront → MySQL connection: queries products
index1.php - Home & profile → MySQL connection: loads account
index.php - Product details → MySQL connection: loads product
product_detail.php - About & brands → MySQL connection: loads content
about.php - Catalog admin → MySQL connection: manages records
admin.php - Profile editing → MySQL connection: updates account
edit_profile.php - Shopper → Add to cart: adds product
- Add to cart → MySQL connection: writes cart
add_to_cart.php - Cart view → MySQL connection: reads cart
cart.php - Cart view → Update cart: posts quantity
cart.php - Update cart → MySQL connection: updates cart
update_cart.php - Shopper → Remove item: removes item
- Remove item → MySQL connection: deletes item
remove_item.php - Shopper → Order checkout: checks out
- Order checkout → MySQL connection: records order
checkout.php - Order checkout → PDF generator: generates invoice
checkout.php - Order checkout → Invoice files: writes PDF
checkout.php - Order checkout → Order confirmation: redirects
checkout.php