HTML code to add compare at price to customer order confirmation email

HTML code to add compare at price to customer order confirmation email

TDDFC
Tourist
18 0 2

Hi, I've added the following to the order confirmation email code so my customers can see the compare at price of each item. However if they order multiple quantities of the same item, I would like it to multiply by the quantity. The same as the final line price does.  Does anyone know how to alter this to do that please?

 

<p> <s> {{ line.variant.compare_at_price | money }} </s> </p>

Reply 1 (1)

Guleria
Shopify Partner
3147 616 882

Try this

{% assign compare_at_price_cents = line.variant.compare_at_price | money_without_currency | remove: ',' | times: 100 %}
{% assign total_price_cents = compare_at_price_cents | times: line.quantity %}
{{ total_price_cents | divided_by: 100.0 | money }}
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me.
- Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder