Your Order History

{% if orders %}
{% for order in orders[:5] %}
Order on: {{ order.CreatedDate }}
{% for line in order.Order_Details__c.split('\n') %} {% set item_parts = line.split('|') %} {% set image_url = item_parts[4].strip().split('Image: ')[-1] %}
{{ item_parts[0].strip() }}
{{ item_parts[0].strip() }}
Quantity: {{ item_parts[1].strip() }}
Add-Ons: {{ item_parts[2].strip() }}
{% endfor %} {% endfor %}
{% else %}

No order history available.

{% endif %}
To meet your requirements of removing images, reorder buttons, and navigating to the cart while displaying order details in a structured way, I've modified the structure accordingly. Here's an updated approa