Rammohan0504 commited on
Commit
b6a6f63
·
verified ·
1 Parent(s): 601bbed

Update templates/order_history.html

Browse files
Files changed (1) hide show
  1. templates/order_history.html +8 -9
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 orders %}
85
- {% for order in orders %}
86
- <h5>Order on: {{ order.CreatedDate }}</h5>
87
- {% for line in order.Order_Details__c.split('\n') %}
88
- {% set item_parts = line.split('|') %}
89
- <div class="order-item">
90
- <img src="/static/images/{{ item_parts[4].strip().replace('Image:', '') }}"
91
- alt="{{ item_parts[0].strip() }}"
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">