Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +1 -0
templates/cart.html
CHANGED
@@ -203,6 +203,7 @@
|
|
203 |
} else if (action === 'decrease' && quantity > 1) {
|
204 |
quantity--;
|
205 |
}
|
|
|
206 |
|
207 |
// Validate quantity
|
208 |
if (isNaN(quantity) || quantity < 1) {
|
|
|
203 |
} else if (action === 'decrease' && quantity > 1) {
|
204 |
quantity--;
|
205 |
}
|
206 |
+
quantityInput.value = quantity;
|
207 |
|
208 |
// Validate quantity
|
209 |
if (isNaN(quantity) || quantity < 1) {
|