Spaces:
Sleeping
Sleeping
Update templates/order_history.html
Browse files
templates/order_history.html
CHANGED
@@ -81,15 +81,14 @@
|
|
81 |
<div class="order-history-container">
|
82 |
<h4 class="mb-4 text-center">Your Order History</h4>
|
83 |
|
84 |
-
{% if
|
85 |
-
{% for
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
<
|
90 |
-
|
91 |
-
|
92 |
-
onerror="this.src='/static/placeholder.jpg';">
|
93 |
|
94 |
|
95 |
<div class="order-item-details">
|
|
|
81 |
<div class="order-history-container">
|
82 |
<h4 class="mb-4 text-center">Your Order History</h4>
|
83 |
|
84 |
+
{% if order %}
|
85 |
+
{% for line in order.Order_Details__c.split('\n') %}
|
86 |
+
{% set item_parts = line.split('|') %}
|
87 |
+
<div class="order-item">
|
88 |
+
<!-- Item Image -->
|
89 |
+
<img src="{{ item_parts[4].strip().replace('Image:', '') }}"
|
90 |
+
alt="{{ item_parts[0].strip() }}"
|
91 |
+
onerror="this.src='/static/placeholder.jpg';">
|
|
|
92 |
|
93 |
|
94 |
<div class="order-item-details">
|