Solved

How to set currency to automatically show price without decimal point (£0)

  • 23 October 2022
  • 4 replies
  • 715 views

Badge +3
  • Contributor IV
  • 7 replies

Hi,

In some of my emails I’m using a dynamic table to pull some products from my site, however I want to drop the .00 from my pricing, please could someone help me do this?

When I enter the pricing for the table on the left hand side, I enter as below:

 

But in the email it shows as below:

 

Thanks

icon

Best answer by Bobi N. 24 October 2022, 07:36

View original

4 replies

Userlevel 7
Badge +42

@kflo 

Try with floatformat:0

so your code should look something like this for example {{ event|lookup:'$value'|floatformat:0 }}

just make sure you add the |floatformat: 0 to whatever metric you are using

Badge +3

@Bobi N. 

Thanks, appreciate your response, please could you specify where I need to check/input the code?

I can only see the following when I click on the product table:

 

 

Userlevel 7
Badge +42

@kflo 

hm.. I thought you were asking about dynamic product blocks.. this one is static and in new editor. In old editor if you just remove .00 simply delete it it will also delete it from the block but in new editor this is not the case. It seems the block here is coded to show the .00 no matter what. 
I would suggest talking to support about this and see if they can help with some solution since I’m also don’t know how to edit in this case..

Badge +3

@Bobi N. 

Hi Bobi,

Thanks for your response, I’ll try and get in touch with Klaviyo support.

Reply