Spaces:
Runtime error
Runtime error
Update templates/cart.html
Browse files- 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();
|