Skip to main content

Hello,

 

I have a browser abandonment flow that I only send to a list of people that have a 10% discount code.

I would like to display a crossed out original price with a discounted price just aside.

There are some screenshots below so you can have a better global view of what is my flow and what i am trying to do:

https://ibb.co/F0PnPxh

https://ibb.co/hXKm6CQ

 

Any advice or idea would be greatly appreciated.

 

Thank you in advance for your time and efforts.

 

Best regards.

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 DocumentationOverview 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.


Reply