nagasurendra commited on
Commit
3b1a4d2
·
verified ·
1 Parent(s): c673217

Update templates/order.html

Browse files
Files changed (1) hide show
  1. templates/order.html +13 -5
templates/order.html CHANGED
@@ -128,11 +128,19 @@
128
  {% if order %}
129
  <div class="order-details">
130
  {% for line in order.Order_Details__c.split('\n') %}
131
- {% set item_parts = line.split('|') %}
132
- <div class="order-item">
133
- <img src="{{ item_parts[1] }}" alt="{{ item_parts[0] }}" onerror="this.src='/static/placeholder.jpg';" width="60" height="60">
134
- <span>{{ item_parts[0] | safe }}</span>
135
- </div>
 
 
 
 
 
 
 
 
136
  {% endfor %}
137
 
138
  </div>
 
128
  {% if order %}
129
  <div class="order-details">
130
  {% for line in order.Order_Details__c.split('\n') %}
131
+ {% set item_parts = line.split('|') %}
132
+ <div class="order-item">
133
+ <img src="{{ item_parts[4].strip().replace('Image:', '') }}"
134
+ alt="{{ item_parts[0].strip() }}"
135
+ onerror="this.src='/static/placeholder.jpg';"
136
+ width="60" height="60">
137
+ <div>
138
+ <strong>{{ item_parts[0].strip() }}</strong> <!-- Item Name & Quantity -->
139
+ <p>{{ item_parts[1].strip().replace('Add-Ons:', '') }}</p> <!-- Add-Ons -->
140
+ <p>{{ item_parts[2].strip().replace('Instructions:', '') }}</p> <!-- Instructions -->
141
+ <p><strong>{{ item_parts[3].strip().replace('Price:', '') }}</strong></p> <!-- Price -->
142
+ </div>
143
+ </div>
144
  {% endfor %}
145
 
146
  </div>