nagasurendra commited on
Commit
847696c
·
verified ·
1 Parent(s): dfba49d

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +1 -0
templates/cart.html CHANGED
@@ -203,6 +203,7 @@
203
  .then(response => response.json())
204
  .then(data => {
205
  if (data.success) {
 
206
  document.querySelector(`input[data-item-name="${itemName}"]`).value = quantity;
207
  } else {
208
  alert("Error updating quantity: " + data.error);
 
203
  .then(response => response.json())
204
  .then(data => {
205
  if (data.success) {
206
+ calculateSubtotal();
207
  document.querySelector(`input[data-item-name="${itemName}"]`).value = quantity;
208
  } else {
209
  alert("Error updating quantity: " + data.error);