How kierby1212/ecommerce works
Outdoers is a small PHP storefront. Users register or sign in, browse and filter products, add items to a cart or select a product for checkout; the app also supports product administration and profile-picture uploads. PHP endpoints directly query the shared MySQL database, while uploaded images are stored under uploads/. The excerpts show these database calls and several page links; cart-to-browser wiring and the behavior of unsampled scripts are not established, so those connections are omitted.
Main entry points: home.php Product Home · register.php Registration and Sign-in · upload.php Profile Picture Upload · admin.php Product Administration
Components 16
Storefront
- Product Home
revisedsirS/home.php - Product Filtering
revisedsirS/fetch_products.php
Accounts and Profiles
- Sign-in Page
revisedsirS/login.php - Registration and Sign-in
revisedsirS/register.php - Sign-out
revisedsirS/logout.php - Profile Lookup
revisedsirS/get_profile.php - Profile Picture Upload
revisedsirS/upload.php
Cart and Checkout
- Add to Cart
revisedsirS/add_to_cart.php - Cart Contents
revisedsirS/get_cart.php - Remove Cart Item
revisedsirS/remove_from_cart.php - Single Product Checkout
revisedsirS/buy.php - Cart Checkout
revisedsirS/checkout.php
Catalog Management
- Product Administration
revisedsirS/admin.php
Persistence and Files
- MySQL Database
- Uploaded Images
revisedsirS/uploads
Other components
- Shopper
Connections 26
- Shopper → Product Home: browses
revisedsirS/home.php - Product Home → Sign-in Page: redirects unauthenticated
revisedsirS/home.php - Shopper → Registration and Sign-in: submits credentials
- Registration and Sign-in → MySQL Database: reads and writes
revisedsirS/register.php - Registration and Sign-in → Sign-in Page: redirects
revisedsirS/register.php - Product Home → MySQL Database: reads profile and products
revisedsirS/home.php - Product Home → Product Filtering: requests filtered products
revisedsirS/home.php - Product Filtering → MySQL Database: queries products
revisedsirS/fetch_products.php - Shopper → Add to Cart: adds item
- Add to Cart → MySQL Database: reads and updates cart
revisedsirS/add_to_cart.php - Shopper → Cart Contents: views cart
- Cart Contents → MySQL Database: queries cart and products
revisedsirS/get_cart.php - Shopper → Remove Cart Item: removes item
- Remove Cart Item → MySQL Database: deletes cart item
revisedsirS/remove_from_cart.php - Product Home → Single Product Checkout: opens product checkout
revisedsirS/home.php - Single Product Checkout → MySQL Database: reads product
revisedsirS/buy.php - Shopper → Cart Checkout: opens cart checkout
- Cart Checkout → MySQL Database: connects database
revisedsirS/checkout.php - Product Home → Profile Picture Upload: submits picture
revisedsirS/home.php - Profile Picture Upload → MySQL Database: reads and updates profile
revisedsirS/upload.php - Profile Picture Upload → Uploaded Images: stores image file
revisedsirS/upload.php - Product Home → Sign-out: links to sign-out
revisedsirS/home.php - Shopper → Product Administration: submits product
- Product Administration → MySQL Database: inserts product
revisedsirS/admin.php - Product Administration → Uploaded Images: stores product image
revisedsirS/admin.php - Profile Lookup → MySQL Database: queries user
revisedsirS/get_profile.php