Skip to main content
Solved

Add 10Discount to an Browser Abandonment Flow


Forum|alt.badge.img
  • Contributor I
  • 1 reply

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.

Best answer by Maxbuzz

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.

View original
Did this topic or the replies in the thread help you find an answer to your question?

4 replies

ArpitBanjara
Principal User I
Forum|alt.badge.img+36
  • Principal User I
  • 371 replies
  • August 5, 2024

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 

 


Forum|alt.badge.img+31
  • Partner
  • 252 replies
  • August 5, 2024

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>

 


Forum|alt.badge.img
  • Author
  • Contributor I
  • 1 reply
  • August 7, 2024
Maxbuzz wrote:

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.


Forum|alt.badge.img+31
  • Partner
  • 252 replies
  • Answer
  • August 7, 2024

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.