How shsarv/e-store works
E-Store is a PHP/MySQLi mobile-shopping site. Visitors browse a product catalog, register or log in, add products to a cart, review the cart, and place an order; logged-in users can also change their password. The graph includes the documented registration validation and login capabilities, but source for several handlers was only indexed, not excerpted, so their internal database operations are not asserted. The README describes a forgot-password flow, but no corresponding implementation file appears in the tree.
Main entry points: index.php Product catalog · login_modal.php Login modal · ecommerce1.sql E-commerce database · contact_us.php Contact page
Components 19
Storefront
- Product catalog
index.php - About page
about_us.php - Contact page
contact_us.php - Contact handler
cont.php
Accounts
- Signup form
signup.php - Registration handler
sign.php - Login modal
login_modal.php - Login handler
logi.php - Password settings
settings.php - Password updater
sett.php
Shopping
- Add-to-cart prompt
add_to_cart.php - Cart add handler
cart_added.php - Cart and totals
cart.php - Order confirmation
success.php - E-commerce database
ecommerce1.sql
Shared UI
- Guest navigation
header_logged_out.php - Member navigation
header_logged_in.php - Guest footer
foot.php
Other components
- Visitor
Connections 29
- Visitor → Product catalog: browses
README.md - Product catalog → Guest navigation: requires
index.php - Product catalog → Member navigation: requires
index.php - Product catalog → Login modal: includes
index.php - Product catalog → Add-to-cart prompt: includes
index.php - Visitor → Signup form: registers
README.md - Signup form → Registration handler: posts to
signup.php - Registration handler → E-commerce database: stores account
- Visitor → Login modal: opens
- Login modal → Login handler: posts to
login_modal.php - Login handler → E-commerce database: checks credentials
- Password settings → Password updater: posts to
settings.php - Password updater → E-commerce database: updates password
- Visitor → About page: views
- Visitor → Contact page: views
- Contact page → Contact handler: posts message
contact_us.php - About page → Guest navigation: requires
about_us.php - About page → Guest footer: requires
about_us.php - Contact page → Guest navigation: requires
contact_us.php - Contact page → Guest footer: requires
contact_us.php - Visitor → Add-to-cart prompt: requests add
- Add-to-cart prompt → Cart add handler: posts product ID
add_to_cart.php - Cart add handler → E-commerce database: adds product
- Visitor → Cart and totals: reviews cart
- Cart and totals → E-commerce database: reads cart and prices
cart.php - Cart and totals → Order confirmation: places order
cart.php - Visitor → Password settings: changes password
- Guest navigation → Login modal: opens
header_logged_out.php - Guest footer → Login modal: opens
foot.php