Subbu1304 commited on
Commit
cae83b4
·
verified ·
1 Parent(s): df40741

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +1 -0
templates/menu.html CHANGED
@@ -952,6 +952,7 @@ function addToCartFromModal() {
952
  const modal = document.getElementById('itemModal');
953
  const modalInstance = bootstrap.Modal.getInstance(modal);
954
  modalInstance.hide();
 
955
  } else {
956
  alert(data.error || 'Failed to add item to cart.');
957
  }
 
952
  const modal = document.getElementById('itemModal');
953
  const modalInstance = bootstrap.Modal.getInstance(modal);
954
  modalInstance.hide();
955
+ showCartButton();
956
  } else {
957
  alert(data.error || 'Failed to add item to cart.');
958
  }