Update templates/cart.html
Browse files- templates/cart.html +14 -0
templates/cart.html
CHANGED
|
@@ -164,6 +164,20 @@
|
|
| 164 |
</label>
|
| 165 |
</div>
|
| 166 |
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
<p class="fw-bold" id="discountText">Discount: $0</p>
|
| 168 |
<p class="fw-bold" id="totalBillText">Total Bill: ${{ subtotal }}</p>
|
| 169 |
<button class="checkout-button" onclick="proceedToOrder()">Proceed to Order</button>
|
|
|
|
| 164 |
</label>
|
| 165 |
</div>
|
| 166 |
{% endif %}
|
| 167 |
+
{% if coupons %}
|
| 168 |
+
<div class="coupon-selection">
|
| 169 |
+
<label>
|
| 170 |
+
<input type="checkbox" id="couponCheckbox" onchange="toggleCouponDropdown()">
|
| 171 |
+
Apply Coupon Code
|
| 172 |
+
</label>
|
| 173 |
+
<select id="couponDropdown" class="form-select mt-2" disabled>
|
| 174 |
+
<option value="">Select a coupon</option>
|
| 175 |
+
{% for coupon in coupons %}
|
| 176 |
+
<option value="{{ coupon }}">{{ coupon }}</option>
|
| 177 |
+
{% endfor %}
|
| 178 |
+
</select>
|
| 179 |
+
</div>
|
| 180 |
+
{% endif %}
|
| 181 |
<p class="fw-bold" id="discountText">Discount: $0</p>
|
| 182 |
<p class="fw-bold" id="totalBillText">Total Bill: ${{ subtotal }}</p>
|
| 183 |
<button class="checkout-button" onclick="proceedToOrder()">Proceed to Order</button>
|