How johnmichaelanadon7-cmd/webdev works
Harvest Bread Co. is a PHP bakery storefront with customer accounts, shopping cart and ordering, payment recording, and administrator tools. The customer path is product browsing, cart management, checkout and order creation, then payment and order tracking; separate branches cover account management and catalog/order administration. Shared PHP helpers provide database access, session-cart operations, validation and error redirects. The README is empty; relationships below are limited to source excerpts and SOURCE INDEX references, so unsampled form wiring is not asserted.
Main entry points: config.php MySQL database · header.php Site navigation · cart_helpers.php Cart operations · error_helpers.php Error redirects
Components 23
Storefront
- Product storefront
index.php - Site navigation
partials/header.php
Accounts
- Sign-in & registration
signup.php - Account handlers
signup_function.php - Input validation
validation.php - Error redirects
error_helpers.php
Orders & Payments
- Cart view
cart.php - Cart operations
cart_helpers.php - Cart endpoints
cart_add.php - Cart updates
cart_update.php - Checkout form
checkout.php - Order creation
checkout_function.php - Payment form
payment.php - Payment processing
payment_function.php - Order history & detail
orders.php - Order confirmation
order_success.php
Administration
- User administration
admin.php - Product administration
admin_products.php - Order administration
admin_orders.php - Admin actions
admin_actions.php - Order status actions
admin_order_actions.php
Other components
- Customer
- MySQL database
database/config.php
Connections 36
- Product storefront → MySQL database: loads products
index.php - Product storefront → Cart operations: uses cart
index.php - Product storefront → Site navigation: includes navigation
index.php - Site navigation → Cart operations: counts items
partials/header.php - Cart view → MySQL database: reads products
cart.php - Cart view → Cart operations: reads cart
cart.php - Cart view → Site navigation: includes navigation
cart.php - Cart endpoints → MySQL database: accesses products
cart_add.php - Cart endpoints → Cart operations: updates cart
cart_add.php - Cart updates → MySQL database: accesses products
cart_update.php - Cart updates → Cart operations: updates cart
cart_update.php - Checkout form → MySQL database: loads checkout data
checkout.php - Checkout form → Cart operations: reads cart
checkout.php - Checkout form → Site navigation: includes navigation
checkout.php - Order creation → MySQL database: creates order
checkout_function.php - Order creation → Cart operations: reads and clears
checkout_function.php - Order creation → Error redirects: redirects errors
checkout_function.php - Payment form → MySQL database: loads order
payment.php - Payment form → Site navigation: includes navigation
payment.php - Payment processing → MySQL database: records payment
payment_function.php - Payment processing → Error redirects: redirects errors
payment_function.php - Order history & detail → MySQL database: loads orders
orders.php - Order history & detail → Site navigation: includes navigation
orders.php - Order confirmation → MySQL database: loads order
order_success.php - Order confirmation → Site navigation: includes navigation
order_success.php - Sign-in & registration → Site navigation: includes navigation
signup.php - Account handlers → MySQL database: stores account
signup_function.php - Account handlers → Input validation: validates input
signup_function.php - Account handlers → Error redirects: redirects errors
signup_function.php - User administration → MySQL database: loads users
admin.php - Product administration → MySQL database: loads products
admin_products.php - Order administration → MySQL database: loads orders
admin_orders.php - Admin actions → MySQL database: updates users
admin_actions.php - Admin actions → Error redirects: redirects errors
admin_actions.php - Order status actions → MySQL database: updates orders
admin_order_actions.php - Order status actions → Error redirects: redirects errors
admin_order_actions.php