Solved

Price doesn't show on abandoned cart emails


Badge +2

Hi there,

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

 

icon

Best answer by David To 15 June 2023, 20:31

View original

10 replies

Userlevel 6
Badge +31

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. 

Badge +2

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.

Userlevel 6
Badge +31

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

Badge +2

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

 

{{ event.Name }}

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

 

 

Userlevel 6
Badge +31

@Sumaya 

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

Badge +2

 

Badge +2

@Sumaya 

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

Here you go :)

Userlevel 7
Badge +60

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

Badge +2

Resolved, thank you all! :)

Badge +4

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

Reply