Logo
Admin Panel
Murugan Trader · Owner Access
Dhinesh Kumar ADPC · Murugan Trader · Admin
← Back to Site
Overview
Store
Services
People
Reviews
Returns
Settings

Dashboard

Syncing...
-
Products
-
Total Orders
-
New Orders
-
Bookings
-
Grocery Items
-
Customers
-
Software Apps
-
Software Purchases
-
Software Revenue
Recent Orders
CustomerItemsTotalPaymentStatus
Loading...

Products

ProductPriceBadgeActions
Loading...

Software downloads

Enter the applicable rate for this software. GST is added to the listed price and calculated for checkout and invoices.
External https:// links are revealed only after verified payment. Public links can be shared after download; private Supabase paths provide stronger access control.
SoftwarePlatformVersionPriceStatusActions

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.
DateCustomer phoneSoftwareOrder IDPayment IDAmountPayment statusUpdate status
Open Software to load purchase history.

Grocery Products

ItemPriceUnitCategoryBadgeActions
Loading...

All Orders

DateCustomerPhoneItemsTotalPaymentStatusActions
Loading...

Product Reviews

ProductTypeCustomerRatingReviewStatusDate & Actions
Loading...

Return Requests

CustomerPhoneItemsTotalReasonStatusActions
Loading...

Service Bookings

DateCustomerPhoneServicePref. DateBase price ₹GST %SAC codeStatusPaymentActions
Loading...

Customer Profiles

All Registered Customers
PhotoNamePhoneEmailAddressJoinedOrdersActions
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 CONFIG in index.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;
          
Add Product
📷 Click to upload product photo
JPG, PNG — auto-compressed
Or URL:
Set this product’s applicable GST rate. The website adds it to the entered price and uses that rate in checkout and invoices.
Add Grocery Item
📷 Click to upload item photo
JPG, PNG — auto-compressed
Or URL:
Set this item’s applicable GST rate. GST is added to the entered price and calculated in checkout and invoices.
Edit Customer Profile