Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +8 -8
templates/cart.html
CHANGED
@@ -125,7 +125,7 @@
|
|
125 |
|
126 |
/* mycahnges */
|
127 |
/* Container for the quantity input */
|
128 |
-
.quantity-input {
|
129 |
display: flex;
|
130 |
align-items: center;
|
131 |
justify-content: center;
|
@@ -164,7 +164,7 @@
|
|
164 |
.quantity-btn:hover {
|
165 |
background-color: #f8f9fa; /* Light grey on hover for buttons */
|
166 |
}
|
167 |
-
|
168 |
|
169 |
|
170 |
|
@@ -193,15 +193,15 @@
|
|
193 |
<div class="cart-item-instructions">
|
194 |
<small class="text-muted">Instructions: {{ item.Instructions__c or "None" }}</small>
|
195 |
</div>
|
196 |
-
|
197 |
<!-- Decrease button -->
|
198 |
<button onclick="updateQuantity('decrease', '{{ item.Name }}', '{{ customer_email }}')">-</button>
|
199 |
<!-- Quantity input field -->
|
200 |
<input type="text" value="{{ item.Quantity__c | int }}" readonly data-item-name="{{ item.Name }}">
|
201 |
<!-- Increase button -->
|
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 |
|
@@ -210,17 +210,17 @@
|
|
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">
|
217 |
<div class="text-primary">
|
218 |
$<span class="base-price">{{ item.Price__c }}</span>
|
219 |
</div>
|
220 |
-
|
221 |
<!-- <button class="btn btn-danger btn-sm" onclick="removeItemFromCart('{{ item.Name }}')">
|
222 |
<i class="fas fa-trash-alt"></i> <!-- Font Awesome delete icon -->
|
223 |
-
</button>
|
224 |
</div>
|
225 |
</div>
|
226 |
{% else %}
|
|
|
125 |
|
126 |
/* mycahnges */
|
127 |
/* Container for the quantity input */
|
128 |
+
/* .quantity-input {
|
129 |
display: flex;
|
130 |
align-items: center;
|
131 |
justify-content: center;
|
|
|
164 |
.quantity-btn:hover {
|
165 |
background-color: #f8f9fa; /* Light grey on hover for buttons */
|
166 |
}
|
167 |
+
*/
|
168 |
|
169 |
|
170 |
|
|
|
193 |
<div class="cart-item-instructions">
|
194 |
<small class="text-muted">Instructions: {{ item.Instructions__c or "None" }}</small>
|
195 |
</div>
|
196 |
+
<div class="cart-item-quantity mt-2">
|
197 |
<!-- Decrease button -->
|
198 |
<button onclick="updateQuantity('decrease', '{{ item.Name }}', '{{ customer_email }}')">-</button>
|
199 |
<!-- Quantity input field -->
|
200 |
<input type="text" value="{{ item.Quantity__c | int }}" readonly data-item-name="{{ item.Name }}">
|
201 |
<!-- Increase button -->
|
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 |
|
|
|
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">
|
217 |
<div class="text-primary">
|
218 |
$<span class="base-price">{{ item.Price__c }}</span>
|
219 |
</div>
|
220 |
+
<button class="btn btn-danger btn-sm" onclick="removeItemFromCart('{{ item.Name }}')">Remove</button> -->
|
221 |
<!-- <button class="btn btn-danger btn-sm" onclick="removeItemFromCart('{{ item.Name }}')">
|
222 |
<i class="fas fa-trash-alt"></i> <!-- Font Awesome delete icon -->
|
223 |
+
</button>
|
224 |
</div>
|
225 |
</div>
|
226 |
{% else %}
|