Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +11 -11
templates/cart.html
CHANGED
|
@@ -285,24 +285,24 @@
|
|
| 285 |
<!-- Subtotal -->
|
| 286 |
<div class="cart-summary">
|
| 287 |
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 294 |
<select id="couponDropdown" class="form-select mt-2" style="display:none;" onchange="calculateDiscount()">
|
| 295 |
<option value="">Select a coupon</option>
|
| 296 |
{% for coupon in coupons %}
|
| 297 |
<option value="{{ coupon }}">{{ coupon }}</option>
|
| 298 |
{% endfor %}
|
| 299 |
</select>
|
| 300 |
-
|
| 301 |
-
{% endif %}
|
| 302 |
|
| 303 |
-
<div class="bill-details">
|
| 304 |
-
<div class="label">Cart Total</div>
|
| 305 |
-
<div class="amount">${{ subtotal }}</div>
|
| 306 |
<div class="label">Discount</div>
|
| 307 |
<div class="amount" id="discountText">-${{ discount }}</div>
|
| 308 |
|
|
|
|
| 285 |
<!-- Subtotal -->
|
| 286 |
<div class="cart-summary">
|
| 287 |
|
| 288 |
+
|
| 289 |
+
<div class="bill-details">
|
| 290 |
+
<div class="label">Cart Total</div>
|
| 291 |
+
<div class="amount">${{ subtotal }}</div>
|
| 292 |
+
<!-- Coupon Section -->
|
| 293 |
+
{% if coupons %}
|
| 294 |
+
<div class="coupon-selection d-flex justify-content-between align-items-center">
|
| 295 |
+
<label class="text-dark font-weight-bold mb-0">Apply Coupon</label>
|
| 296 |
+
<a href="javascript:void(0);" id="applyCouponLink" onclick="toggleCouponDropdown()" class="text-primary">+ Apply Coupon</a>
|
| 297 |
+
</div>
|
| 298 |
<select id="couponDropdown" class="form-select mt-2" style="display:none;" onchange="calculateDiscount()">
|
| 299 |
<option value="">Select a coupon</option>
|
| 300 |
{% for coupon in coupons %}
|
| 301 |
<option value="{{ coupon }}">{{ coupon }}</option>
|
| 302 |
{% endfor %}
|
| 303 |
</select>
|
| 304 |
+
{% endif %}
|
|
|
|
| 305 |
|
|
|
|
|
|
|
|
|
|
| 306 |
<div class="label">Discount</div>
|
| 307 |
<div class="amount" id="discountText">-${{ discount }}</div>
|
| 308 |
|