Spaces:
Running
Running
Update templates/menu.html
Browse files- templates/menu.html +1 -1
templates/menu.html
CHANGED
@@ -236,7 +236,7 @@
|
|
236 |
.then(data => {
|
237 |
if (data.success) {
|
238 |
alert('Item added to cart successfully!');
|
239 |
-
|
240 |
} else {
|
241 |
console.error('Error adding item to cart:', data.error);
|
242 |
alert(data.error || 'Failed to add item to cart.');
|
|
|
236 |
.then(data => {
|
237 |
if (data.success) {
|
238 |
alert('Item added to cart successfully!');
|
239 |
+
window.location.href = '/menu'; // Redirect to the cart page
|
240 |
} else {
|
241 |
console.error('Error adding item to cart:', data.error);
|
242 |
alert(data.error || 'Failed to add item to cart.');
|