window.waOptinAsk = false; window.phonepeConfigured = false; window.businessQrAvailable = false; window.businessQrImageUrl = ""; window.restaurantTimezoneOffset = 330; window.enableGst = 1; window.taxName = "GST"; window.taxPercent = 5; window.pricesIncludeTax = false; // prices include tax / service charge (config/bill_rules.php) window.serviceChargePercent = 0; window.restaurantCountry = "India"; window.restaurantDialCode = "+91"; window.restaurantPhoneMin = 10; window.restaurantPhoneMax = 10; // delivery priced on the size of the order (config/delivery_pricing.php does the same sums server-side) window.enableOrderValueDelivery = 0; window.deliveryFreeAbove = 0; window.deliveryPercent = 0; window.enableDelivery = 1; window.enableTakeaway = 1; window.enableDinein = 1; window.codEnabled = 1; window.websiteTableNumber = ""; // Room service from a hotel room's QR code (header.php $qr_room): {room, param, stay, charge} or null window.websiteRoom = null; // The table this guest scanned (header.php $qr_table, kept 4 h on the server) is also kept in this tab, where // the cart's checkout looks for it: without it a guest who scanned the QR was asked to "select a table" (function () { if (!window.websiteTableNumber || window.websiteRoom) return; try { var rid = (document.querySelector('meta[name=restaurant-id]') || {}).content || ''; if (sessionStorage.getItem('qrTable') === window.websiteTableNumber && sessionStorage.getItem('qrTableRid') === rid) return; sessionStorage.setItem('qrTable', window.websiteTableNumber); sessionStorage.setItem('qrTableRid', rid); sessionStorage.setItem('qrTableAt', String(Date.now())); } catch (e) {} })(); window.restaurantAddress = "The Autograph Inn, Eastern Bypass, Thakur Nagar, Siliguri, West Bengal 735135"; window.loggedInCustomer = null; window.loginUrl = "login.php?restaurant_id=RESUAK426\u0026redirect=cart"; // Can a visitor order without an account? (Settings › Ordering, config/guest_checkout.php). // Off: the checkout gate below stops honouring a guest session, and the order API refuses // the same way, so a page left open from before the switch can't talk its way past it. window.guestCheckoutAllowed = true; // Google Maps API key loaded from .env (used for delivery address autocomplete + geocoding) window.googleMapsApiKey = "AIzaSyDl1t3Is_aBBjD3GCBIZqTHO0dmneLsrnA"; window.deliveryRadius = 0; window.restaurantLat = null; window.restaurantLng = null; window.enableKmDelivery = 0; window.deliveryRatePerKm = 0; // Helper: append ?table=X param from sessionStorage or window var to any URL // A guest at a table who scanned its QR code (not a hotel room): the short way through checkout. No login // page, no coupon popup, no email, "Pay at the table" first, and the tracking page right after ordering. // Name and phone are still asked (once, remembered on this phone): the order needs them, and they make the // guest's customer record in the restaurant's Customers list. function rgQrDineIn() { if (window.websiteRoom) return false; try { return !!(window.websiteTableNumber || sessionStorage.getItem('qrTable')); } catch (e) { return !!window.websiteTableNumber; } } function appendTableParam(url) { var tbl = window.websiteTableNumber || sessionStorage.getItem('qrTable') || ''; if (tbl) { url += (url.indexOf('?') > -1 ? '&' : '?') + 'table=' + encodeURIComponent(tbl); } return url; }
The Hype
₹0.00 (0 Items)