Rammohan0504 commited on
Commit
540b915
·
verified ·
1 Parent(s): 8f9de7d

Update templates/order.html

Browse files
Files changed (1) hide show
  1. 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">${{ order.Total_Amount__c }}</span>
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