Skip to main content

Hello, 

I would like to edit the order confirmation email. At the bottom, I want to add a line which refers to the tax amount paid by the customer. I want the line to be called "TVA 20%" and it needs to show the amount of TVA which would be the result of "0.2 x order price". I don’t know how to add a calculation in the HTLM code. 
I tried to do something like that:
 

Sous-total : {{ event.extra.subtotal_price }}

TVA 20% (incluse) :  {{ 0.2*event.extra.subtotal_price }}

Livraison : {{ event.extra.shipping_lines.0.price }}

Total : {{ event|lookup:'$value' }}

Obviously, it’s not correct. Can you help me fixing the code?

Kind regards,

Hello @Lapast,

Welcome to the Klaviyo Community!

I would suggest taking a look at both our How to use filters to customize variables and Glossary of variable filters Help Center articles as they offer a great explanation of how to use variable filters to perform arithmetic. 

I also encourage you to look at some past Community posts on this topic. I’ve included some below that discuss a similar topic:

I hope this helps!

David


Thank you David, I managed to do it :)


Reply