Spaces:
Sleeping
Sleeping
Update templates/order.html
Browse files- templates/order.html +10 -2
templates/order.html
CHANGED
@@ -138,11 +138,19 @@
|
|
138 |
{% endif %}
|
139 |
</div>
|
140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
<!-- Total Section -->
|
142 |
{% if order %}
|
143 |
<div class="order-summary mt-4">
|
144 |
-
<span>Total: </span>
|
145 |
-
<span class="total-price">${{
|
146 |
</div>
|
147 |
{% endif %}
|
148 |
|
|
|
138 |
{% endif %}
|
139 |
</div>
|
140 |
|
141 |
+
<!-- Discount Section -->
|
142 |
+
{% if discount %}
|
143 |
+
<div class="order-summary mt-4">
|
144 |
+
<span>Discount: </span>
|
145 |
+
<span class="total-price">-${{ discount }}</span>
|
146 |
+
</div>
|
147 |
+
{% endif %}
|
148 |
+
|
149 |
<!-- Total Section -->
|
150 |
{% if order %}
|
151 |
<div class="order-summary mt-4">
|
152 |
+
<span>Total (after discount): </span>
|
153 |
+
<span class="total-price">${{ final_total }}</span> <!-- final_total includes the discount -->
|
154 |
</div>
|
155 |
{% endif %}
|
156 |
|