Order confirmation - Property for order total before discount

Excursionist
24 1 1

I am trying to revise my order confirmation template as a customer was confused by its current appearance. 

I would like to show the order total before any discount is applied, shipping is added, etc.

Currently it shows like this:

Discount (code: OCANADA): $-21.62
Subtotal: $72.38
Shipping: $0.00
Total: $72.38

<p style="margin:0;padding-bottom:0">{% if discounts %} <strong>Discount (code: {{ discounts.first.code }}):</strong> {{ discounts_savings|money }}<br />
{% endif %} <strong>Subtotal:</strong> {{ subtotal_price|money }}<br />
{% for tax_line in tax_lines %}<strong>{{ tax_line.title }}:</strong> {{ tax_line.price|money }}<br />
{% endfor %} {% if requires_shipping %} <strong>Shipping:</strong> {{ shipping_price|money }}<br />
{% endif %} <strong>Total:</strong> {{ total_price|money }}</p>

I'd like it to show like this:

Order total: $94.00
Discount (code: OCANADA): $-21.62
Subtotal: $72.38
Shipping: $0.00
Total: $72.38

I've looked in the variables reference and can't find one for the order total before discounts, shipping, etc.

https://help.shopify.com/en/manual/sell-online/notifications/email-variables

Can anyone help? Thanks.

 

 

 

1 Like
New Member
1 0 0

Any update on this by chance :)

0 Likes