How abk-00/grocery_delivery works
GroceryGo is a multi-company grocery ordering and delivery app. Customers browse company-scoped groceries, manage a cart, place an order, pay, and track delivery; staff and administrators manage orders and delivery assignment, while delivery partners update GPS locations. Super administrators manage companies and subscriptions. The README documents tenant isolation and these capabilities; sampled source confirms role/company access checks and delivery GPS updates. Several page-to-page interactions are documented rather than sampled, so those links cite the README; unverified integrations are shown as optional.
Main entry points: order_details.php Staff order handling · db.php MySQL database · auth.php Role and tenant access · products.php Product catalog
Components 21
Customer shopping
- Product catalog
products.php - Product details
product.php - Shopping cart
cart.php - Checkout
checkout.php - Order placement
api/place_order.php - Customer orders
orders.php - Payment APIs
api/initialize_payment.php - Customer tracking
customer/track_order.php
Order fulfillment
- Staff order handling
staff/order_details.php - Admin operations
admin/order_details.php - Delivery operations
delivery/track_delivery.php - GPS location API
api/update_delivery_location.php
Tenant platform
- Company management
super_admin/companies.php
Shared services
- Role and tenant access
includes/auth.php - Shared helpers
includes/functions.php - MySQL database
config/db.php - Payment configuration
config/paystack.php - Role navigation
includes/admin_sidebar.php - Page loader
includes/loader.php
Other components
- Customer
- Paystack
Connections 30
- Customer → Product catalog: browses
- Product catalog → Product details: opens details
- Customer → Shopping cart: manages items
- Shopping cart → Checkout: checks out
- Checkout → Order placement: submits order
- Order placement → Customer orders: creates order
- Customer → Customer orders: views orders
- Checkout → Payment APIs: starts payment
- Payment APIs → Paystack: requests payment
- Customer orders → Customer tracking: tracks delivery
- Staff order handling → MySQL database: reads and updates
staff/order_details.php - Admin operations → MySQL database: reads and updates
admin/order_details.php - Staff order handling → Delivery operations: assigns delivery
- Delivery operations → GPS location API: posts locations
delivery/track_delivery.php - GPS location API → MySQL database: stores locations
api/update_delivery_location.php - Company management → MySQL database: manages companies
super_admin/companies.php - Product catalog → MySQL database: queries products
products.php - Order placement → MySQL database: stores orders
api/place_order.php - Payment APIs → MySQL database: checks order ownership
api/initialize_payment.php - Payment APIs → Payment configuration: loads configuration
api/initialize_payment.php - Product catalog → Role and tenant access: enforces company scope
- Staff order handling → Role and tenant access: checks access
staff/order_details.php - Admin operations → Role and tenant access: checks access
admin/order_details.php - Delivery operations → Role and tenant access: checks access
delivery/track_delivery.php - Company management → Role and tenant access: checks role
super_admin/companies.php - Staff order handling → Shared helpers: uses helpers
staff/order_details.php - Admin operations → Shared helpers: uses helpers
admin/order_details.php - Delivery operations → Shared helpers: uses helpers
delivery/track_delivery.php - Staff order handling → Role navigation: includes navigation
- Staff order handling → Page loader: includes loader
staff/order_details.php