Hey @MAES
Thank you for asking this question here in the community
from your screenshot, I dont see any other ‘price’ like ‘discounted price’ coming in the event preview. I only see the $32.99 amount in your screenshot.
You need to check this but maybe the discounted price is coming in your catalog. ‘Catalog lookup’ is another way you can dynamically pull in information about the profile or products and display in your email. Some resources I would suggest using to build this are the Django Documentation, Overview of the Catalog Lookup Tag, and Template Tags and Variable Syntax Help Center articles.
Using the strikethrough functionality is easy - you can use these tags - <s> {{ whatever the price tag is }} <s>
I hope this helps
Cheers
Arpit
Hello @MAES You can use something like this:
{% assign original_price = event.Metadata.Price %}
{% assign discount = original_price | times: 0.10 %}
{% assign discounted_price = original_price | minus: discount %}
<strike>{{ discounted_price }}</strike>
Hello @MAES You can use something like this:
{% assign original_price = event.Metadata.Price %}
{% assign discount = original_price | times: 0.10 %}
{% assign discounted_price = original_price | minus: discount %}
<strike>{{ discounted_price }}</strike>
Hello @Maxbuzz,
Thank you very much for your reply.
I’ve tried the code you gave, but it seems to not work. It says invalid syntax. You can see more details with those screenshots below:
https://ibb.co/2jPrZWK
https://ibb.co/NmRzCkQ
(By the way i’ve tried to copy and paste your code in the text and in the html but both ways don’t function)
Hoping you will find where the problem comes from.
Again, thank you very much for your time and efforts.
Waiting forward to hear from you, regards.
Hello @MAES Looks like these types of calculations are not supported by Klaviyo. You will have to perform this calculation while sending the event attribute.