Skip to main content
Solved

Price doesn't show on abandoned cart emails


Forum|alt.badge.img+3

Hi there,

The price doesn’t show on abandoned cart emails on my end. Any idea what might be the reason?

 

Best answer by David To

Hey @Sumaya,

Gotta applaud @Spark Bridge Digital LLC for doing an awesome job at highlighting a lot of the steps you would take to finding the correct event variable! 

On your preview page, I would suggest clicking on that “Price” field on the right side of your email preview. This will return and copy that specific event property’s value which you can reformat and use in your dynamic block. 

If you haven’t had a chance to yet, I would suggest taking a look at @Anna McCarthy’s Community post below. In it, she has a video tutorial highlighting how to use event data to build or customize/edit a dynamic table block.

You can also check out our How to build dynamic blocks in a flow email Help Center article on this topic as well!

David

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

11 replies

Spark Bridge Digital LLC
Partner - Gold
Forum|alt.badge.img+33

Hey @Sumaya!

On your preview screen, you should see a list of those variables where the price variable may be slightly different.

Maybe give this a try:

{% currency_format item.line_price|floatformat:2 %}

It uses item.line_price as the variable. 


Forum|alt.badge.img+3
  • Author
  • Contributor IV
  • 7 replies
  • June 15, 2023
Spark Bridge Digital LLC wrote:

Hey @Sumaya!

On your preview screen, you should see a list of those variables where the price variable may be slightly different.

Maybe give this a try:

{% currency_format item.line_price|floatformat:2 %}

It uses item.line_price as the variable. 

unfortunately didn’t work.


Spark Bridge Digital LLC
Partner - Gold
Forum|alt.badge.img+33

@Sumaya Are you able to share a screenshot of your variables that appear for price? That can help narrow it down on what one you need to use.


Forum|alt.badge.img+3
  • Author
  • Contributor IV
  • 7 replies
  • June 15, 2023

Of course, this is it, and thank you so much for your help:

 

{{ event.Name }}

Price: {% currency_format event.Price|floatformat:2 %}

 

 


Spark Bridge Digital LLC
Partner - Gold
Forum|alt.badge.img+33

@Sumaya 

Actually if you could click ‘Preview & Test’ in the top right and that’ll be your list of data variables.


Forum|alt.badge.img+3
  • Author
  • Contributor IV
  • 7 replies
  • June 15, 2023

 


Forum|alt.badge.img+3
  • Author
  • Contributor IV
  • 7 replies
  • June 15, 2023
Spark Bridge Digital LLC wrote:

@Sumaya 

Actually if you could click ‘Preview & Test’ in the top right and that’ll be your list of data variables.

Here you go :)


David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • Answer
  • June 15, 2023

Hey @Sumaya,

Gotta applaud @Spark Bridge Digital LLC for doing an awesome job at highlighting a lot of the steps you would take to finding the correct event variable! 

On your preview page, I would suggest clicking on that “Price” field on the right side of your email preview. This will return and copy that specific event property’s value which you can reformat and use in your dynamic block. 

If you haven’t had a chance to yet, I would suggest taking a look at @Anna McCarthy’s Community post below. In it, she has a video tutorial highlighting how to use event data to build or customize/edit a dynamic table block.

You can also check out our How to build dynamic blocks in a flow email Help Center article on this topic as well!

David


Forum|alt.badge.img+3
  • Author
  • Contributor IV
  • 7 replies
  • June 19, 2023

Resolved, thank you all! :)


Forum|alt.badge.img+5
  • Contributor I
  • 1 reply
  • October 27, 2023

This is not the solution to be honest.

{{ event.Price|default:'' }} works

{% currency_format event.Price %} works

{% currency_format event.Price|floatformat:2 %} does not.

There is a bug with floatformat


Forum|alt.badge.img+3
  • Partner - Gold
  • 5 replies
  • October 8, 2024

How we can set up a compare price and discounted price: