Support


Contact us if you have any questions and we'll help you

Showing prices without the decimal comma

Hi!
I show prices in Hungarian forints. The decimal comma is unnecessary. Where can I set this up?

Thanks for the help.


Notifications

Comments

Sam   June 25, 2018

Hello,
Unfortunately this type of configuration does not exist, apologies.

Reply

Xavier Pallicer   June 26, 2018

Hello Nagy,

Yes, you can override the default currency formatting. Sorry for the previous reply.

The currency formatting is controlled by the CHLib library, to override the default formatting, place a file in this folder:

your_site_root/libraries/chlib/overrides/HUF.json

With this content

{"currency_format": "{amount|0|,| } symbol"}

Tell us if you need any further information.

Regards!

Reply

Nagy   June 27, 2018

Thanks for the help! It works!

Reply

Nagy   June 29, 2018

Dear Xavier Pallicer!
Unfortunately, the solution is not perfect. In the result list, the price is displayed in the desired format (with no decimal commas). But in the calendar with 2 decimal places, which so is very confusing. The forint (HUF) has no smaller unit, such as for the dollar the cent. Unfortunately, seniors with a weak eye so may think the price is 100 times! It would be nice to have a solution because the component is excellent, but unfortunately it is thus unusable in Hungary. Thanks!

Reply