/** * Ecommer Landing Page with built-in booking backend. * * Endpoints: * ?action=get_slots&date=YYYY-MM-DD (GET) → JSON list of booked slots * ?action=book_demo (POST) → store booking, send email * * Bookings are stored in bookings.json (one JSON object per line). * Email is sent via PHP mail() – ensure your server is configured. */ define('BOOKINGS_FILE', __DIR__ . '/bookings.json'); define('ADMIN_EMAIL', 'info@ecommer.in'); define('SITE_TITLE', 'Ecommer Demo Booking'); // --------------------------------------------------------------------- // Handle AJAX requests before any output // --------------------------------------------------------------------- $action = $_GET['action'] ?? null; if ($action === 'get_slots') { header('Content-Type: application/json'); $date = $_GET['date'] ?? ''; if (!preg_match('/^\d{4}-\d{2}-\d{2}$/', $date)) { echo json_encode(['error' => 'Invalid date']); exit; } $bookedSlots = []; if (file_exists(BOOKINGS_FILE)) { $lines = file(BOOKINGS_FILE, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach ($lines as $line) { $booking = json_decode($line, true); if ($booking && ($booking['date'] ?? '') === $date) { $bookedSlots[] = $booking['slot']; } } } echo json_encode(['slots' => $bookedSlots]); exit; } if ($action === 'book_demo' && $_SERVER['REQUEST_METHOD'] === 'POST') { header('Content-Type: application/json'); $input = json_decode(file_get_contents('php://input'), true); if (!$input) { http_response_code(400); echo json_encode(['error' => 'Invalid request']); exit; } $date = $input['date'] ?? ''; $slot = $input['slot'] ?? ''; $business = $input['business'] ?? ''; $name = $input['name'] ?? ''; $mobile = $input['mobile'] ?? ''; $email = $input['email'] ?? ''; if (!$date || !$slot || !$name || !$mobile) { http_response_code(400); echo json_encode(['error' => 'Missing required fields']); exit; } if (!preg_match('/^\d{4}-\d{2}-\d{2}$/', $date)) { http_response_code(400); echo json_encode(['error' => 'Invalid date']); exit; } $alreadyBooked = false; if (file_exists(BOOKINGS_FILE)) { $lines = file(BOOKINGS_FILE, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach ($lines as $line) { $b = json_decode($line, true); if ($b && ($b['date'] ?? '') === $date && ($b['slot'] ?? '') === $slot) { $alreadyBooked = true; break; } } } if ($alreadyBooked) { http_response_code(409); echo json_encode(['error' => 'This slot has just been booked. Please choose another time.']); exit; } $booking = [ 'business' => $business, 'name' => $name, 'mobile' => $mobile, 'email' => $email, 'date' => $date, 'slot' => $slot, 'ip' => $_SERVER['REMOTE_ADDR'] ?? 'unknown', 'browser' => $_SERVER['HTTP_USER_AGENT'] ?? 'unknown', 'booked_at'=> date('c'), ]; $line = json_encode($booking) . PHP_EOL; if (file_put_contents(BOOKINGS_FILE, $line, FILE_APPEND | LOCK_EX) === false) { http_response_code(500); echo json_encode(['error' => 'Could not save booking.']); exit; } $subject = "New Demo Booking - Ecommer Website"; $message = "A new demo has been booked:\n\n" . "Business Type: {$business}\n" . "Name: {$name}\n" . "Mobile: {$mobile}\n" . "Email: {$email}\n" . "Date: {$date}\n" . "Time Slot: {$slot}\n" . "IP: {$_SERVER['REMOTE_ADDR']}\n" . "Browser: {$_SERVER['HTTP_USER_AGENT']}\n" . "Booked at: {$booking['booked_at']}\n"; $headers = "From: Ecommer.in\r\n"; $headers .= "Reply-To: {$email}\r\n"; @mail(ADMIN_EMAIL, $subject, $message, $headers); echo json_encode(['success' => true]); exit; } ?>
Instant GST invoicing, auto inventory updates, WhatsApp sharing, and lifetime access — trusted by 500+ Tamilnadu businesses.
Onboarded Customers
Invoices Generated
Quotations Given
Active Users
Barcode scan → GST bill → WhatsApp share → Done.
Barcode Scan
GST & e-Way Bills
WhatsApp Share
Live Reports
.png)
Competitor Software
₹2,000/mo
5 Years = ₹1,20,000
10 Years = ₹2,40,000
Ecommer — One-Time
₹7,999
Lifetime
You Save ₹2,32,001
That's 96.7% less!
Barcode → Bill
Scan → GST Invoice
Order → KOT → Bill
EMI → Receipt
Payment → Printed
Scan → Invoice
Most charge ₹1,500–₹3,000 per month. Ecommer = one‑time ₹7,999.
| Software | Monthly | 5‑Year | 10‑Year | Model |
|---|---|---|---|---|
| Tally Prime | ₹2,500 | ₹1,50,000 | ₹3,00,000 | Yearly |
| Vyapar / Busy | ₹1,800 | ₹1,08,000 | ₹2,16,000 | Monthly |
| Marg / Reach | ₹2,000 | ₹1,20,000 | ₹2,40,000 | Monthly |
| Ecommer (One‑Time) | ₹0/mo | ₹7,999 | ₹7,999 | Lifetime |
You Save up to ₹2,92,000
Select your industry, fill details, and pick a time — we'll call you instantly.
Step 1: Select Your Business
Selected: None
Step 2: Your Details
Step 3: Pick Date & Time
Mon–Sat only.
Step 4: Confirm Booking
✅
✅ |
✅ Date & Slot:
Yes! Pay ₹7,999 once and use the software forever. No recurring fees.
Absolutely. Free data migration from Tally, Excel, and other software.
ஆம்! Phone & WhatsApp support in Tamil & English.
Yes! You can bill offline; data syncs automatically when back online.
All data is encrypted with bank‑grade security and backed up daily.
Yes, Ecommer works on Android, iOS (mobile browser), and desktop.
We offer a 30‑day money‑back guarantee. No questions asked.
Join 500+ Tamilnadu businesses. One payment. Lifetime usage.