geethareddy commited on
Commit
71d0773
·
verified ·
1 Parent(s): 29a3e68

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +1 -1
templates/menu.html CHANGED
@@ -271,7 +271,7 @@
271
  .then(data => {
272
  if (data.success) {
273
  alert('Item added to cart successfully!');
274
- window.location.href = '/cart'; // Redirect to the cart page
275
  } else {
276
  console.error('Error adding item to cart:', data.error);
277
  alert(data.error || 'Failed to add item to cart.');
 
271
  .then(data => {
272
  if (data.success) {
273
  alert('Item added to cart successfully!');
274
+ window.location.href = '/menu'; // Redirect to the cart page
275
  } else {
276
  console.error('Error adding item to cart:', data.error);
277
  alert(data.error || 'Failed to add item to cart.');