Spaces:
Sleeping
Sleeping
Update templates/order.html
Browse files- 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 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>
|