Your Order Summary
{% if order %}
{% for line in order.Order_Details__c.split('\n') %}
{% set item_parts = line.split('|') %}
{{ item_parts[0].strip() }}
Add-ons: {{ item_parts[1].strip().replace('Add-Ons:', '') }}
Instructions: {{ item_parts[2].strip().replace('Instructions:', '') }}
{{ item_parts[3].strip().replace('Price:', '') }}
{% endfor %}
Sub-Total: ${{ order.Total_Amount__c }}
Discount: ${{ "%.2f"|format(order.Discount__c) }}
Total Bill: ${{ "%.2f"|format(order.Total_Bill__c) }}
{% else %}
No order details available.
{% endif %}