💰 Convert all prices to ₹ (rupees)
Browse files- data/menu.json +14 -14
- public/js/admin.js +3 -3
- public/js/main.js +1 -1
- public/js/order.js +6 -6
data/menu.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
"id": "a1b2c3d4-0001",
|
| 7 |
"name": "Cappuccino",
|
| 8 |
"description": "Rich espresso topped with velvety steamed milk foam. A timeless Italian favorite.",
|
| 9 |
-
"price":
|
| 10 |
"category": "coffee",
|
| 11 |
"image": "https://images.unsplash.com/photo-1572442388796-11668a67e53d?w=160&h=160&fit=crop&auto=format",
|
| 12 |
"available": true,
|
|
@@ -16,7 +16,7 @@
|
|
| 16 |
"id": "a1b2c3d4-0002",
|
| 17 |
"name": "Vanilla Latte",
|
| 18 |
"description": "Smooth espresso with steamed milk and house-made vanilla syrup.",
|
| 19 |
-
"price":
|
| 20 |
"category": "coffee",
|
| 21 |
"image": "https://images.unsplash.com/photo-1461023058943-07fcbe16d735?w=160&h=160&fit=crop&auto=format",
|
| 22 |
"available": true,
|
|
@@ -26,7 +26,7 @@
|
|
| 26 |
"id": "a1b2c3d4-0003",
|
| 27 |
"name": "Cold Brew",
|
| 28 |
"description": "Slow-steeped for 18 hours \u2014 smooth, bold, and naturally sweet. Served over ice.",
|
| 29 |
-
"price":
|
| 30 |
"category": "coffee",
|
| 31 |
"image": "https://images.unsplash.com/photo-1517701550927-30cf4ba1dba5?w=160&h=160&fit=crop&auto=format",
|
| 32 |
"available": true,
|
|
@@ -36,7 +36,7 @@
|
|
| 36 |
"id": "a1b2c3d4-0004",
|
| 37 |
"name": "Caramel Macchiato",
|
| 38 |
"description": "Layered espresso and milk with a buttery caramel drizzle.",
|
| 39 |
-
"price":
|
| 40 |
"category": "coffee",
|
| 41 |
"image": "https://images.unsplash.com/photo-1485808191679-5f86510681a2?w=160&h=160&fit=crop&auto=format",
|
| 42 |
"available": true,
|
|
@@ -46,7 +46,7 @@
|
|
| 46 |
"id": "a1b2c3d4-0005",
|
| 47 |
"name": "Mocha",
|
| 48 |
"description": "Decadent chocolate meets bold espresso, crowned with whipped cream.",
|
| 49 |
-
"price":
|
| 50 |
"category": "coffee",
|
| 51 |
"image": "https://images.unsplash.com/photo-1578314675249-a6910f80cc4e?w=160&h=160&fit=crop&auto=format",
|
| 52 |
"available": true,
|
|
@@ -56,7 +56,7 @@
|
|
| 56 |
"id": "a1b2c3d4-0006",
|
| 57 |
"name": "Matcha Latte",
|
| 58 |
"description": "Ceremonial-grade Japanese matcha whisked with steamed oat milk.",
|
| 59 |
-
"price":
|
| 60 |
"category": "tea",
|
| 61 |
"image": "https://images.unsplash.com/photo-1536256263959-770b48d82b0a?w=160&h=160&fit=crop&auto=format",
|
| 62 |
"available": true,
|
|
@@ -66,7 +66,7 @@
|
|
| 66 |
"id": "a1b2c3d4-0007",
|
| 67 |
"name": "Earl Grey",
|
| 68 |
"description": "Fragrant black tea with bergamot. Served in a pot with a lemon twist.",
|
| 69 |
-
"price":
|
| 70 |
"category": "tea",
|
| 71 |
"image": "https://images.unsplash.com/photo-1594631252845-29fc4cc8cde9?w=160&h=160&fit=crop&auto=format",
|
| 72 |
"available": true,
|
|
@@ -76,7 +76,7 @@
|
|
| 76 |
"id": "a1b2c3d4-0008",
|
| 77 |
"name": "Chamomile Honey",
|
| 78 |
"description": "Soothing chamomile blossoms with a drizzle of local wildflower honey.",
|
| 79 |
-
"price":
|
| 80 |
"category": "tea",
|
| 81 |
"image": "https://images.unsplash.com/photo-1576092768241-dec231879fc3?w=160&h=160&fit=crop&auto=format",
|
| 82 |
"available": true,
|
|
@@ -86,7 +86,7 @@
|
|
| 86 |
"id": "a1b2c3d4-0009",
|
| 87 |
"name": "Butter Croissant",
|
| 88 |
"description": "Flaky, golden, and impossibly buttery. Baked fresh every morning.",
|
| 89 |
-
"price":
|
| 90 |
"category": "pastries",
|
| 91 |
"image": "https://images.unsplash.com/photo-1623334044303-241021148842?w=160&h=160&fit=crop&auto=format",
|
| 92 |
"available": true,
|
|
@@ -96,7 +96,7 @@
|
|
| 96 |
"id": "a1b2c3d4-0010",
|
| 97 |
"name": "Blueberry Muffin",
|
| 98 |
"description": "Tender crumb studded with wild blueberries and a streusel top.",
|
| 99 |
-
"price":
|
| 100 |
"category": "pastries",
|
| 101 |
"image": "https://images.unsplash.com/photo-1607958996333-41aef7caefaa?w=160&h=160&fit=crop&auto=format",
|
| 102 |
"available": true,
|
|
@@ -106,7 +106,7 @@
|
|
| 106 |
"id": "a1b2c3d4-0011",
|
| 107 |
"name": "Cinnamon Roll",
|
| 108 |
"description": "Soft, gooey, and generously swirled with cinnamon-brown sugar. Topped with cream cheese frosting.",
|
| 109 |
-
"price":
|
| 110 |
"category": "pastries",
|
| 111 |
"image": "https://images.unsplash.com/photo-1509365465985-25d11c17e812?w=160&h=160&fit=crop&auto=format",
|
| 112 |
"available": true,
|
|
@@ -116,7 +116,7 @@
|
|
| 116 |
"id": "a1b2c3d4-0012",
|
| 117 |
"name": "Avocado Toast",
|
| 118 |
"description": "Sourdough topped with smashed avocado, cherry tomatoes, feta, and chili flakes.",
|
| 119 |
-
"price":
|
| 120 |
"category": "food",
|
| 121 |
"image": "https://images.unsplash.com/photo-1541519227354-08fa5d50c44d?w=160&h=160&fit=crop&auto=format",
|
| 122 |
"available": true,
|
|
@@ -126,7 +126,7 @@
|
|
| 126 |
"id": "a1b2c3d4-0013",
|
| 127 |
"name": "Caprese Panini",
|
| 128 |
"description": "Fresh mozzarella, tomato, and basil pressed on ciabatta with balsamic glaze.",
|
| 129 |
-
"price":
|
| 130 |
"category": "food",
|
| 131 |
"image": "https://images.unsplash.com/photo-1509722747041-616f39b57569?w=160&h=160&fit=crop&auto=format",
|
| 132 |
"available": true,
|
|
@@ -136,7 +136,7 @@
|
|
| 136 |
"id": "a1b2c3d4-0014",
|
| 137 |
"name": "A\u00e7a\u00ed Bowl",
|
| 138 |
"description": "Blended a\u00e7a\u00ed with granola, banana, strawberries, coconut, and a drizzle of honey.",
|
| 139 |
-
"price":
|
| 140 |
"category": "food",
|
| 141 |
"image": "https://images.unsplash.com/photo-1590301157890-4810ed352733?w=160&h=160&fit=crop&auto=format",
|
| 142 |
"available": true,
|
|
|
|
| 6 |
"id": "a1b2c3d4-0001",
|
| 7 |
"name": "Cappuccino",
|
| 8 |
"description": "Rich espresso topped with velvety steamed milk foam. A timeless Italian favorite.",
|
| 9 |
+
"price": 375,
|
| 10 |
"category": "coffee",
|
| 11 |
"image": "https://images.unsplash.com/photo-1572442388796-11668a67e53d?w=160&h=160&fit=crop&auto=format",
|
| 12 |
"available": true,
|
|
|
|
| 16 |
"id": "a1b2c3d4-0002",
|
| 17 |
"name": "Vanilla Latte",
|
| 18 |
"description": "Smooth espresso with steamed milk and house-made vanilla syrup.",
|
| 19 |
+
"price": 415,
|
| 20 |
"category": "coffee",
|
| 21 |
"image": "https://images.unsplash.com/photo-1461023058943-07fcbe16d735?w=160&h=160&fit=crop&auto=format",
|
| 22 |
"available": true,
|
|
|
|
| 26 |
"id": "a1b2c3d4-0003",
|
| 27 |
"name": "Cold Brew",
|
| 28 |
"description": "Slow-steeped for 18 hours \u2014 smooth, bold, and naturally sweet. Served over ice.",
|
| 29 |
+
"price": 395,
|
| 30 |
"category": "coffee",
|
| 31 |
"image": "https://images.unsplash.com/photo-1517701550927-30cf4ba1dba5?w=160&h=160&fit=crop&auto=format",
|
| 32 |
"available": true,
|
|
|
|
| 36 |
"id": "a1b2c3d4-0004",
|
| 37 |
"name": "Caramel Macchiato",
|
| 38 |
"description": "Layered espresso and milk with a buttery caramel drizzle.",
|
| 39 |
+
"price": 455,
|
| 40 |
"category": "coffee",
|
| 41 |
"image": "https://images.unsplash.com/photo-1485808191679-5f86510681a2?w=160&h=160&fit=crop&auto=format",
|
| 42 |
"available": true,
|
|
|
|
| 46 |
"id": "a1b2c3d4-0005",
|
| 47 |
"name": "Mocha",
|
| 48 |
"description": "Decadent chocolate meets bold espresso, crowned with whipped cream.",
|
| 49 |
+
"price": 435,
|
| 50 |
"category": "coffee",
|
| 51 |
"image": "https://images.unsplash.com/photo-1578314675249-a6910f80cc4e?w=160&h=160&fit=crop&auto=format",
|
| 52 |
"available": true,
|
|
|
|
| 56 |
"id": "a1b2c3d4-0006",
|
| 57 |
"name": "Matcha Latte",
|
| 58 |
"description": "Ceremonial-grade Japanese matcha whisked with steamed oat milk.",
|
| 59 |
+
"price": 455,
|
| 60 |
"category": "tea",
|
| 61 |
"image": "https://images.unsplash.com/photo-1536256263959-770b48d82b0a?w=160&h=160&fit=crop&auto=format",
|
| 62 |
"available": true,
|
|
|
|
| 66 |
"id": "a1b2c3d4-0007",
|
| 67 |
"name": "Earl Grey",
|
| 68 |
"description": "Fragrant black tea with bergamot. Served in a pot with a lemon twist.",
|
| 69 |
+
"price": 310,
|
| 70 |
"category": "tea",
|
| 71 |
"image": "https://images.unsplash.com/photo-1594631252845-29fc4cc8cde9?w=160&h=160&fit=crop&auto=format",
|
| 72 |
"available": true,
|
|
|
|
| 76 |
"id": "a1b2c3d4-0008",
|
| 77 |
"name": "Chamomile Honey",
|
| 78 |
"description": "Soothing chamomile blossoms with a drizzle of local wildflower honey.",
|
| 79 |
+
"price": 290,
|
| 80 |
"category": "tea",
|
| 81 |
"image": "https://images.unsplash.com/photo-1576092768241-dec231879fc3?w=160&h=160&fit=crop&auto=format",
|
| 82 |
"available": true,
|
|
|
|
| 86 |
"id": "a1b2c3d4-0009",
|
| 87 |
"name": "Butter Croissant",
|
| 88 |
"description": "Flaky, golden, and impossibly buttery. Baked fresh every morning.",
|
| 89 |
+
"price": 310,
|
| 90 |
"category": "pastries",
|
| 91 |
"image": "https://images.unsplash.com/photo-1623334044303-241021148842?w=160&h=160&fit=crop&auto=format",
|
| 92 |
"available": true,
|
|
|
|
| 96 |
"id": "a1b2c3d4-0010",
|
| 97 |
"name": "Blueberry Muffin",
|
| 98 |
"description": "Tender crumb studded with wild blueberries and a streusel top.",
|
| 99 |
+
"price": 350,
|
| 100 |
"category": "pastries",
|
| 101 |
"image": "https://images.unsplash.com/photo-1607958996333-41aef7caefaa?w=160&h=160&fit=crop&auto=format",
|
| 102 |
"available": true,
|
|
|
|
| 106 |
"id": "a1b2c3d4-0011",
|
| 107 |
"name": "Cinnamon Roll",
|
| 108 |
"description": "Soft, gooey, and generously swirled with cinnamon-brown sugar. Topped with cream cheese frosting.",
|
| 109 |
+
"price": 415,
|
| 110 |
"category": "pastries",
|
| 111 |
"image": "https://images.unsplash.com/photo-1509365465985-25d11c17e812?w=160&h=160&fit=crop&auto=format",
|
| 112 |
"available": true,
|
|
|
|
| 116 |
"id": "a1b2c3d4-0012",
|
| 117 |
"name": "Avocado Toast",
|
| 118 |
"description": "Sourdough topped with smashed avocado, cherry tomatoes, feta, and chili flakes.",
|
| 119 |
+
"price": 790,
|
| 120 |
"category": "food",
|
| 121 |
"image": "https://images.unsplash.com/photo-1541519227354-08fa5d50c44d?w=160&h=160&fit=crop&auto=format",
|
| 122 |
"available": true,
|
|
|
|
| 126 |
"id": "a1b2c3d4-0013",
|
| 127 |
"name": "Caprese Panini",
|
| 128 |
"description": "Fresh mozzarella, tomato, and basil pressed on ciabatta with balsamic glaze.",
|
| 129 |
+
"price": 870,
|
| 130 |
"category": "food",
|
| 131 |
"image": "https://images.unsplash.com/photo-1509722747041-616f39b57569?w=160&h=160&fit=crop&auto=format",
|
| 132 |
"available": true,
|
|
|
|
| 136 |
"id": "a1b2c3d4-0014",
|
| 137 |
"name": "A\u00e7a\u00ed Bowl",
|
| 138 |
"description": "Blended a\u00e7a\u00ed with granola, banana, strawberries, coconut, and a drizzle of honey.",
|
| 139 |
+
"price": 915,
|
| 140 |
"category": "food",
|
| 141 |
"image": "https://images.unsplash.com/photo-1590301157890-4810ed352733?w=160&h=160&fit=crop&auto=format",
|
| 142 |
"available": true,
|
public/js/admin.js
CHANGED
|
@@ -130,7 +130,7 @@ function renderTable() {
|
|
| 130 |
</div>
|
| 131 |
</td>
|
| 132 |
<td>${cats[item.category] || item.category}</td>
|
| 133 |
-
<td>$
|
| 134 |
<td>
|
| 135 |
<span class="badge ${item.available ? 'badge-available' : 'badge-soldout'}">
|
| 136 |
${item.available ? 'Available' : 'Sold out'}
|
|
@@ -502,12 +502,12 @@ async function renderOrders() {
|
|
| 502 |
<div class="order-card-body">
|
| 503 |
<ul class="order-items">
|
| 504 |
${o.items.map(i => i.mid
|
| 505 |
-
? `<li>${i.qty}× ${esc(i.name)} <span>$
|
| 506 |
: `<li class="order-item-custom">"${esc(i.text)}"</li>`
|
| 507 |
).join('')}
|
| 508 |
</ul>
|
| 509 |
${o.note ? `<p class="order-note">📝 ${esc(o.note)}</p>` : ''}
|
| 510 |
-
<p class="order-total">Total: $
|
| 511 |
</div>
|
| 512 |
${`
|
| 513 |
<div class="order-card-actions">
|
|
|
|
| 130 |
</div>
|
| 131 |
</td>
|
| 132 |
<td>${cats[item.category] || item.category}</td>
|
| 133 |
+
<td>₹${item.price.toFixed(0)}</td>
|
| 134 |
<td>
|
| 135 |
<span class="badge ${item.available ? 'badge-available' : 'badge-soldout'}">
|
| 136 |
${item.available ? 'Available' : 'Sold out'}
|
|
|
|
| 502 |
<div class="order-card-body">
|
| 503 |
<ul class="order-items">
|
| 504 |
${o.items.map(i => i.mid
|
| 505 |
+
? `<li>${i.qty}× ${esc(i.name)} <span>₹${(i.price * i.qty).toFixed(0)}</span></li>`
|
| 506 |
: `<li class="order-item-custom">"${esc(i.text)}"</li>`
|
| 507 |
).join('')}
|
| 508 |
</ul>
|
| 509 |
${o.note ? `<p class="order-note">📝 ${esc(o.note)}</p>` : ''}
|
| 510 |
+
<p class="order-total">Total: ₹${o.total.toFixed(0)}</p>
|
| 511 |
</div>
|
| 512 |
${`
|
| 513 |
<div class="order-card-actions">
|
public/js/main.js
CHANGED
|
@@ -151,7 +151,7 @@ function buildMenu(items, categories) {
|
|
| 151 |
</div>
|
| 152 |
<div class="menu-card-header">
|
| 153 |
<h3 class="menu-card-name">${escapeHtml(item.name)}</h3>
|
| 154 |
-
<span class="menu-card-price">$
|
| 155 |
</div>
|
| 156 |
<span class="menu-card-label">Tasting</span>
|
| 157 |
<p class="menu-card-description">${escapeHtml(item.description)}</p>
|
|
|
|
| 151 |
</div>
|
| 152 |
<div class="menu-card-header">
|
| 153 |
<h3 class="menu-card-name">${escapeHtml(item.name)}</h3>
|
| 154 |
+
<span class="menu-card-price">₹${item.price.toFixed(0)}</span>
|
| 155 |
</div>
|
| 156 |
<span class="menu-card-label">Tasting</span>
|
| 157 |
<p class="menu-card-description">${escapeHtml(item.description)}</p>
|
public/js/order.js
CHANGED
|
@@ -95,7 +95,7 @@ function renderItems(catId = 'all') {
|
|
| 95 |
<div class="ord-item-name">${esc(item.name)}</div>
|
| 96 |
<div class="ord-item-desc">${esc(item.description || '')}</div>
|
| 97 |
</div>
|
| 98 |
-
<div class="ord-item-price">$
|
| 99 |
<button class="ord-item-add" ${!item.available ? 'disabled' : ''}>${qty > 0 ? qty : '+'}</button>
|
| 100 |
</div>
|
| 101 |
`;
|
|
@@ -153,14 +153,14 @@ function renderCart() {
|
|
| 153 |
<div class="cart-item">
|
| 154 |
<div class="cart-item-info">
|
| 155 |
<div class="cart-item-name">${esc(c.name)}</div>
|
| 156 |
-
<div class="cart-item-meta">$
|
| 157 |
</div>
|
| 158 |
<div class="cart-item-qty">
|
| 159 |
<button class="cart-qty-btn" data-action="minus" data-mid="${c.mid}">−</button>
|
| 160 |
<span class="cart-qty-num">${c.qty}</span>
|
| 161 |
<button class="cart-qty-btn" data-action="plus" data-mid="${c.mid}">+</button>
|
| 162 |
</div>
|
| 163 |
-
<div class="cart-item-price">$
|
| 164 |
<button class="cart-item-remove" data-action="remove" data-mid="${c.mid}">✕</button>
|
| 165 |
</div>
|
| 166 |
`).join('');
|
|
@@ -177,7 +177,7 @@ function renderCart() {
|
|
| 177 |
});
|
| 178 |
}
|
| 179 |
|
| 180 |
-
document.getElementById('cartTotal').textContent = `$
|
| 181 |
document.getElementById('cartCount').textContent = cart.reduce((s, c) => s + c.qty, 0);
|
| 182 |
document.getElementById('cartBadge').style.display = cart.length > 0 ? '' : 'none';
|
| 183 |
|
|
@@ -211,12 +211,12 @@ async function loadLiveOrders() {
|
|
| 211 |
</div>
|
| 212 |
<ul class="live-order-items">
|
| 213 |
${o.items.map(i => i.mid
|
| 214 |
-
? `<li><span>${i.qty}× ${esc(i.name)}</span> <span>$
|
| 215 |
: `<li class="lo-custom">"${esc(i.text)}"</li>`
|
| 216 |
).join('')}
|
| 217 |
</ul>
|
| 218 |
${o.note ? `<p class="live-order-note">Note: ${esc(o.note)}</p>` : ''}
|
| 219 |
-
<p class="live-order-total">$
|
| 220 |
</div>
|
| 221 |
`).join('');
|
| 222 |
} catch { /* silently fail — customer-facing */ }
|
|
|
|
| 95 |
<div class="ord-item-name">${esc(item.name)}</div>
|
| 96 |
<div class="ord-item-desc">${esc(item.description || '')}</div>
|
| 97 |
</div>
|
| 98 |
+
<div class="ord-item-price">₹${item.price.toFixed(0)}</div>
|
| 99 |
<button class="ord-item-add" ${!item.available ? 'disabled' : ''}>${qty > 0 ? qty : '+'}</button>
|
| 100 |
</div>
|
| 101 |
`;
|
|
|
|
| 153 |
<div class="cart-item">
|
| 154 |
<div class="cart-item-info">
|
| 155 |
<div class="cart-item-name">${esc(c.name)}</div>
|
| 156 |
+
<div class="cart-item-meta">₹${c.price.toFixed(0)} each</div>
|
| 157 |
</div>
|
| 158 |
<div class="cart-item-qty">
|
| 159 |
<button class="cart-qty-btn" data-action="minus" data-mid="${c.mid}">−</button>
|
| 160 |
<span class="cart-qty-num">${c.qty}</span>
|
| 161 |
<button class="cart-qty-btn" data-action="plus" data-mid="${c.mid}">+</button>
|
| 162 |
</div>
|
| 163 |
+
<div class="cart-item-price">₹${(c.price * c.qty).toFixed(0)}</div>
|
| 164 |
<button class="cart-item-remove" data-action="remove" data-mid="${c.mid}">✕</button>
|
| 165 |
</div>
|
| 166 |
`).join('');
|
|
|
|
| 177 |
});
|
| 178 |
}
|
| 179 |
|
| 180 |
+
document.getElementById('cartTotal').textContent = `₹${total.toFixed(0)}`;
|
| 181 |
document.getElementById('cartCount').textContent = cart.reduce((s, c) => s + c.qty, 0);
|
| 182 |
document.getElementById('cartBadge').style.display = cart.length > 0 ? '' : 'none';
|
| 183 |
|
|
|
|
| 211 |
</div>
|
| 212 |
<ul class="live-order-items">
|
| 213 |
${o.items.map(i => i.mid
|
| 214 |
+
? `<li><span>${i.qty}× ${esc(i.name)}</span> <span>₹${(i.price * i.qty).toFixed(0)}</span></li>`
|
| 215 |
: `<li class="lo-custom">"${esc(i.text)}"</li>`
|
| 216 |
).join('')}
|
| 217 |
</ul>
|
| 218 |
${o.note ? `<p class="live-order-note">Note: ${esc(o.note)}</p>` : ''}
|
| 219 |
+
<p class="live-order-total">₹${o.total.toFixed(0)}</p>
|
| 220 |
</div>
|
| 221 |
`).join('');
|
| 222 |
} catch { /* silently fail — customer-facing */ }
|