nagasurendra commited on
Commit
049d7d7
·
verified ·
1 Parent(s): 0431b74

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. 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
- window.location.href = '/cart'; // 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.');
 
236
  .then(data => {
237
  if (data.success) {
238
  alert('Item added to cart successfully!');
239
+ //window.location.href = '/cart'; // 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.');