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