Solved

remove quantity variable

  • 27 December 2021
  • 2 replies
  • 127 views

Badge +2

How do I remove the “.0” in product quantities? 

The value from the e-commerce platform only shows “1”

icon

Best answer by Indy. 27 December 2021, 19:12

View original

2 replies

Badge +2

Hey there! You can remove this by using ‘float format’ - try putting 

|floatformat:0

after the property, before you close it. So it would look like: 

{{ INSERTPROPERTY|floatformat:0 }}

https://help.klaviyo.com/hc/en-us/articles/115005084927-Guide-to-Template-Tags-and-Variable-Syntax#basic-filters-15

 

That should do the trick!

I am having this same issue, but this did not solve it for me. Any other options?

 

Reply