Dashboard
Syncing...
-
Products
-
Total Orders
-
New Orders
-
Bookings
-
Grocery Items
-
Customers
-
Software Apps
-
Software Purchases
-
Software Revenue
Recent Orders
| Customer | Items | Total | Payment | Status |
|---|---|---|---|---|
| Loading... | ||||
Products
| Product | Price | Badge | Actions |
|---|---|---|---|
| Loading... | |||
Software downloads
| Software | Platform | Version | Price | Status | Actions |
|---|
Software buying history & payment control
Review customer purchases, monitor payment totals, filter records, and export a report. Verified payments cannot be manually marked as paid.
Purchase history loads after opening Software.
| Date | Customer phone | Software | Order ID | Payment ID | Amount | Payment status | Update status |
|---|---|---|---|---|---|---|---|
| Open Software to load purchase history. | |||||||
Grocery Products
| Item | Price | Unit | Category | Badge | Actions |
|---|---|---|---|---|---|
| Loading... | |||||
All Orders
| Date | Customer | Phone | Items | Total | Payment | Status | Actions |
|---|---|---|---|---|---|---|---|
| Loading... | |||||||
Product Reviews
| Product | Type | Customer | Rating | Review | Status | Date & Actions |
|---|---|---|---|---|---|---|
| Loading... | ||||||
Return Requests
| Customer | Phone | Items | Total | Reason | Status | Actions |
|---|---|---|---|---|---|---|
| Loading... | ||||||
Service Bookings
| Date | Customer | Phone | Service | Pref. Date | Base price ₹ | GST % | SAC code | Status | Payment | Actions |
|---|---|---|---|---|---|---|---|---|---|---|
| Loading... | ||||||||||
Customer Profiles
All Registered Customers
| Photo | Name | Phone | Address | Joined | Orders | Actions | |
|---|---|---|---|---|---|---|---|
| Loading... | |||||||
Edit Customer Profile
👤
🚚 Delivery Charge Settings
Changes are stored in localStorage and applied instantly on the storefront. Use Reset to revert to site defaults.
Enter 0 for free delivery always.
If cart subtotal ≥ this value, delivery is free. Set 0 to disable.
Each zone: name, keywords (comma-separated from customer address), and charge. Customer address is matched against keywords — first match wins. Last zone is the default fallback.
Current active config:
Configuration Guide
Setup Checklist
1. Supabase Setup
- Go to supabase.com → New Project
- Create tables:
products,orders,bookings,profiles - Copy Project URL and anon key into
CONFIGinindex.html
2. Razorpay Payment Gateway
- Your Razorpay Key ID is already configured in index.html
- Payment orders are auto-generated per checkout — no manual links needed
- Razorpay SDK handles UPI, Cards, Net Banking, Wallets automatically
- Payment is verified via API on return — order placed automatically
3. Vercel Deployment
- Push files to GitHub
- Connect repo to vercel.com
- Set environment variables for sensitive keys
4. SQL Tables (run in Supabase SQL editor)
-- ══════════════════════════════════════
-- MURUGAN TRADER - SUPABASE SQL SETUP
-- Run this ONCE in Supabase SQL Editor
-- ══════════════════════════════════════
-- 1. Products table
CREATE TABLE IF NOT EXISTS products (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
name text NOT NULL,
price numeric NOT NULL,
description text,
badge text,
emoji text,
img_url text,
unit text,
stock integer DEFAULT 999,
category text NOT NULL DEFAULT 'other',
created_at timestamptz DEFAULT now()
);
ALTER TABLE grocery_products ADD COLUMN IF NOT EXISTS category text NOT NULL DEFAULT 'other';
-- 2. Orders table
CREATE TABLE IF NOT EXISTS orders (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
customer_name text,
customer_phone text,
customer_email text,
address text,
items text,
total numeric,
payment_method text,
transaction_id text,
payment_status text DEFAULT 'Pending',
status text DEFAULT 'New',
created_at timestamptz DEFAULT now()
);
-- 3. Bookings table
CREATE TABLE IF NOT EXISTS bookings (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
customer_name text,
customer_phone text,
service text,
preferred_date text,
address text,
notes text,
status text DEFAULT 'New',
created_at timestamptz DEFAULT now()
);
-- 4. Profiles table (customers)
CREATE TABLE IF NOT EXISTS profiles (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
email text,
name text,
phone text UNIQUE,
address text,
profile_pic text,
created_at timestamptz DEFAULT now()
);
-- 5. Enable Row Level Security
ALTER TABLE products ENABLE ROW LEVEL SECURITY;
ALTER TABLE orders ENABLE ROW LEVEL SECURITY;
ALTER TABLE bookings ENABLE ROW LEVEL SECURITY;
ALTER TABLE profiles ENABLE ROW LEVEL SECURITY;
-- 6. Drop existing policies to avoid conflicts
DROP POLICY IF EXISTS "Public read products" ON products;
DROP POLICY IF EXISTS "Service write products" ON products;
DROP POLICY IF EXISTS "Service write orders" ON orders;
DROP POLICY IF EXISTS "Service read orders" ON orders;
DROP POLICY IF EXISTS "Service write bookings" ON bookings;
DROP POLICY IF EXISTS "Service read bookings" ON bookings;
DROP POLICY IF EXISTS "Public read profiles" ON profiles;
DROP POLICY IF EXISTS "Public write profiles" ON profiles;
DROP POLICY IF EXISTS "Admin all products" ON products;
DROP POLICY IF EXISTS "Admin all orders" ON orders;
DROP POLICY IF EXISTS "Admin all bookings" ON bookings;
-- 7. Create Policies (allow all operations for simplicity)
CREATE POLICY "Allow all on products" ON products FOR ALL USING (true) WITH CHECK (true);
CREATE POLICY "Allow insert orders" ON orders FOR INSERT WITH CHECK (true);
CREATE POLICY "Allow select orders" ON orders FOR SELECT USING (true);
CREATE POLICY "Allow update orders" ON orders FOR UPDATE USING (true) WITH CHECK (true);
CREATE POLICY "Allow insert bookings" ON bookings FOR INSERT WITH CHECK (true);
CREATE POLICY "Allow select bookings" ON bookings FOR SELECT USING (true);
CREATE POLICY "Allow update bookings" ON bookings FOR UPDATE USING (true) WITH CHECK (true);
CREATE POLICY "Allow all profiles" ON profiles FOR ALL USING (true) WITH CHECK (true);
-- 8. Enable Realtime (for live sync)
ALTER PUBLICATION supabase_realtime ADD TABLE products;
ALTER PUBLICATION supabase_realtime ADD TABLE orders;
ALTER PUBLICATION supabase_realtime ADD TABLE bookings;
-- Review security is configured by supabase/verified_product_reviews.sql.
-- Do not create a public write policy: the server verifies purchases and
-- administrators approve reviews before customers can see them.
-- Add columns to existing tables
ALTER TABLE products ADD COLUMN IF NOT EXISTS avg_rating numeric DEFAULT 0;
ALTER TABLE products ADD COLUMN IF NOT EXISTS review_count integer DEFAULT 0;
ALTER TABLE orders ADD COLUMN IF NOT EXISTS tracking_note text;
ALTER TABLE orders ADD COLUMN IF NOT EXISTS tracking_updated_at timestamptz;
-- Review schema is created by supabase/verified_product_reviews.sql.
-- Grocery Products table
CREATE TABLE IF NOT EXISTS grocery_products (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
name text NOT NULL,
price numeric NOT NULL,
description text,
badge text,
emoji text,
img_url text,
unit text,
stock integer DEFAULT 999,
created_at timestamptz DEFAULT now()
);
ALTER TABLE grocery_products ENABLE ROW LEVEL SECURITY;
DROP POLICY IF EXISTS "Allow all on grocery_products" ON grocery_products;
CREATE POLICY "Allow all on grocery_products" ON grocery_products FOR ALL USING (true) WITH CHECK (true);
ALTER PUBLICATION supabase_realtime ADD TABLE grocery_products;