Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +7 -7
templates/cart.html
CHANGED
@@ -202,15 +202,15 @@
|
|
202 |
<button onclick="updateQuantity('increase', '{{ item.Name }}', '{{ customer_email }}')">+</button>
|
203 |
</div> -->
|
204 |
<div class="quantity-input">
|
205 |
-
|
206 |
-
|
207 |
|
208 |
-
|
209 |
-
|
210 |
|
211 |
-
|
212 |
-
|
213 |
-
</div>
|
214 |
|
215 |
</div>
|
216 |
<div class="cart-item-actions">
|
|
|
202 |
<button onclick="updateQuantity('increase', '{{ item.Name }}', '{{ customer_email }}')">+</button>
|
203 |
</div> -->
|
204 |
<div class="quantity-input">
|
205 |
+
<!-- Decrease button -->
|
206 |
+
<button class="quantity-btn" onclick="updateQuantity('decrease', '{{ item.Name }}', '{{ customer_email }}')">-</button>
|
207 |
|
208 |
+
<!-- Quantity input field -->
|
209 |
+
<input type="text" value="{{ item.Quantity__c | int }}" readonly data-item-name="{{ item.Name }}" class="quantity-field">
|
210 |
|
211 |
+
<!-- Increase button -->
|
212 |
+
<button class="quantity-btn" onclick="updateQuantity('increase', '{{ item.Name }}', '{{ customer_email }}')">+</button>
|
213 |
+
</div>
|
214 |
|
215 |
</div>
|
216 |
<div class="cart-item-actions">
|