On our “Abandoned Cart” Flow EDM, the price is coming up with 8 x decimal places.
We’ve looked on the back end and there’s only 2 x decimal places for the price, we’ve nevered entered more than 2 but it always comes up through EDM.
Any suggestions on how to fix?
Thanks!!!
Page 1 / 1
Hi @WildEst1996!,
The dynamic data that displays in abandoned cart flow (item image, item price, etc) pulls directly from the triggering metric for that flow. I would recommend seeing if you can find a different price event property in the triggering event payload.
As shown in the example below, I am able to pull the price event property from the “Started Checkout” event and have that display with the correct price.
On top of the great solution posed by @julie.accardo, another method to cut down on the decimal points for a dynamic variable would be to use the floatformat variable filter. Using a variable filter such as |floatformat:2 will limit the number of decimal points the variable will show. As noted in the Glossary of Variable Filters article, the example they have listed as: If your variable is 5 or 5.0003, {{ your_variable|floatformat:2 }} will render as 5.00.