How sivabalaji-tn/tamizhmart works
TamizhMart is a multi-tenant PHP commerce platform: shoppers discover a shop, browse its catalog, manage a cart, and place COD or Razorpay orders; shop owners configure and operate their storefronts, while super-admins manage platform accounts and subscriptions. The map preserves authentication, email, payments, and PWA capabilities documented in the README. Excerpts and the SOURCE INDEX support only some implementation links; less-visible feature connections are omitted rather than inferred.
Main entry points: dashboard.php Owner dashboard · db.php MySQL database · index.php Shop home · checkout.php Checkout & orders
Components 25
Customer storefront
- Shop home
shop/index.php - Catalog & product
shop/products.php - Shopping cart
shop/cart.php - Checkout & orders
shop/checkout.php - Razorpay payments
shop/razorpay_create_order.php
Authentication
- Customer account
auth/login.php - Google OAuth
auth/google_oauth_init.php - OTP recovery
auth/verify_otp.php
Shop operations
- Owner dashboard
owner/dashboard.php - Product management
owner/products.php - Order management
owner/orders.php - Campaigns
owner/campaigns.php - Store settings & theme
owner/settings.php - Analytics
owner/analytics.php
Platform administration
- Admin console
superadmin/dashboard.php - Plans & subscriptions
superadmin/subscriptions.php - Audit & commissions
superadmin/includes/audit.php
Shared services
- MySQL database
config/db.php - PHPMailer
PHPMailer-master/src/PHPMailer.php - PWA offline support
sw.js - Offline fallback
offline.php
Other components
- Shopper
- Shop owner
- Platform administrator
- Gmail SMTP
Connections 24
- Shopper → Shop home: visits
- Shop home → Catalog & product: browses
- Shopper → Shopping cart: updates
- Shopping cart → Checkout & orders: checks out
- Checkout & orders → Razorpay payments: pays online
- Shopper → Customer account: signs in
- Customer account → Google OAuth: offers sign-in
auth/login.php - Customer account → OTP recovery: supports recovery
- Shop owner → Owner dashboard: manages shop
- Owner dashboard → Product management: manages products
- Owner dashboard → Order management: manages orders
- Owner dashboard → Campaigns: runs campaigns
- Owner dashboard → Store settings & theme: configures storefront
- Owner dashboard → Analytics: views analytics
- Campaigns → PHPMailer: sends email
owner/campaigns.php - PHPMailer → Gmail SMTP: delivers mail
- Platform administrator → Admin console: manages platform
- Admin console → Plans & subscriptions: manages plans
- Plans & subscriptions → Audit & commissions: records collections
superadmin/subscriptions.php - Shop home → MySQL database: reads shop data
shop/index.php - Checkout & orders → MySQL database: records orders
shop/checkout.php - Owner dashboard → MySQL database: uses database
- Plans & subscriptions → MySQL database: reads and writes
superadmin/subscriptions.php - PWA offline support → Offline fallback: offline fallback