Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +7 -9
templates/cart.html
CHANGED
@@ -130,15 +130,13 @@
|
|
130 |
</div>
|
131 |
<div class="cart-item-quantity mt-2">
|
132 |
<!-- Decrease button -->
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
</div>
|
141 |
-
</div>
|
142 |
<div class="cart-item-actions">
|
143 |
<div class="text-primary">${{ item.Price__c }}</div>
|
144 |
<button class="btn btn-danger btn-sm" onclick="removeItemFromCart('{{ item.Name }}')">Remove</button>
|
|
|
130 |
</div>
|
131 |
<div class="cart-item-quantity mt-2">
|
132 |
<!-- Decrease button -->
|
133 |
+
<button onclick="updateQuantity('decrease', '{{ item.Name }}', '{{ customer_email }}')">-</button>
|
134 |
+
<!-- Quantity input field -->
|
135 |
+
<input type="text" value="{{ item.Quantity__c }}" readonly data-item-name="{{ item.Name }}">
|
136 |
+
<!-- Increase button -->
|
137 |
+
<button onclick="updateQuantity('increase', '{{ item.Name }}', '{{ customer_email }}')">+</button>
|
138 |
+
</div>
|
139 |
+
</div>
|
|
|
|
|
140 |
<div class="cart-item-actions">
|
141 |
<div class="text-primary">${{ item.Price__c }}</div>
|
142 |
<button class="btn btn-danger btn-sm" onclick="removeItemFromCart('{{ item.Name }}')">Remove</button>
|