How winston-dsouza/ecommerce-website works
Planet Shopify is a PHP/MySQL storefront for men’s products. Visitors browse the home page and catalog; account forms create or authenticate a session, after which shoppers can add items, review or remove cart entries, and confirm an order. Shared navigation exposes the storefront and account actions, while the About page provides a contact form handled by Formspree. The excerpts show key page calls and SQL; unsampled endpoints and schema details are represented only where the index or README supports them.
Main entry points: cart.php Cart view · header_menu.php Account navigation and forms · common.php Database connection · ecommerce.sql Ecommerce database
Components 17
Storefront
- Home page
index.php - Product catalog
products.php - About and contact
about.php
Accounts
- Account navigation and forms
includes/header_menu.php - Sign up
signup_script.php - Log in
login_script.php - Log out
logout_script.php
Cart and Orders
- Cart status check
includes/check-if-added.php - Add to cart
cart-add.php - Cart view
cart.php - Remove cart item
cart-remove.php - Order confirmation
success.php
Shared and Integrations
- Database connection
includes/common.php - Ecommerce database
ecommerce.sql - Shared footer
includes/footer.php
Other components
- Shopper
- Formspree
Connections 33
- Shopper → Home page: opens
- Home page → Account navigation and forms: includes
index.php - Home page → Cart status check: includes
index.php - Home page → Product catalog: links to
index.php - Home page → Shared footer: includes
index.php - Product catalog → Account navigation and forms: includes
products.php - Product catalog → Cart status check: checks items
products.php - Product catalog → Add to cart: links to
products.php - Account navigation and forms → Log in: posts to
includes/header_menu.php - Account navigation and forms → Sign up: posts to
includes/header_menu.php - Account navigation and forms → Cart view: links to
includes/header_menu.php - Account navigation and forms → Log out: links to
includes/header_menu.php - Sign up → Database connection: uses connection
signup_script.php - Sign up → Ecommerce database: queries users
signup_script.php - Log in → Database connection: uses connection
login_script.php - Log in → Ecommerce database: queries users
login_script.php - Cart status check → Database connection: loads connection
includes/check-if-added.php - Cart view → Database connection: loads connection
cart.php - Cart view → Ecommerce database: reads cart
cart.php - Cart view → Remove cart item: links to
cart.php - Cart view → Order confirmation: links to
cart.php - Remove cart item → Database connection: loads connection
cart-remove.php - Remove cart item → Ecommerce database: deletes item
cart-remove.php - Remove cart item → Cart view: redirects to
cart-remove.php - Order confirmation → Database connection: loads connection
success.php - Order confirmation → Ecommerce database: confirms items
success.php - Database connection → Ecommerce database: connects to
includes/common.php - About and contact → Account navigation and forms: includes
about.php - About and contact → Shared footer: includes
about.php - About and contact → Formspree: submits form
about.php - Product catalog → Shared footer: includes
products.php - Cart view → Shared footer: includes
cart.php - Order confirmation → Shared footer: includes
success.php