nagasurendra commited on
Commit
070ae9d
·
verified ·
1 Parent(s): 9cd76b1

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +1 -0
templates/cart.html CHANGED
@@ -206,6 +206,7 @@
206
  itemPriceElement.innerHTML = `$<span class="base-price">${data.new_item_price}</span>`;
207
  document.querySelector(`[data-item-name="${itemName}"] .base-price`).innerText = data.new_item_price.toFixed(2);
208
  document.querySelector('.cart-summary p').innerText = `Subtotal: $${data.subtotal.toFixed(2)}`;
 
209
 
210
  // Recalculate subtotal dynamically
211
  calculateSubtotal();
 
206
  itemPriceElement.innerHTML = `$<span class="base-price">${data.new_item_price}</span>`;
207
  document.querySelector(`[data-item-name="${itemName}"] .base-price`).innerText = data.new_item_price.toFixed(2);
208
  document.querySelector('.cart-summary p').innerText = `Subtotal: $${data.subtotal.toFixed(2)}`;
209
+ location.reload();
210
 
211
  // Recalculate subtotal dynamically
212
  calculateSubtotal();