Forum

Thread tagged as: Configuration, Field-Types, Shop

Separation between thousands

I use the currency CHF and I want the separation of thousands is displayed with a " ' " (apostrophe) in place of "," as is done now. Is it possible to change this setting?

Emmanuel Neuhaus

Emmanuel Neuhaus 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What format codes are you using, and what's your server locale set to?

I try to format a field from a shop template with: type="shop_currency_value". My server locale is setlocale (LC_ALL, 'fr_CH','fra'); If I use format="#:2|.|'" with this field type the page display 0.00 for the price.

Drew McLellan

Drew McLellan 2638 points
Perch Support

I thought we were using money_format() for this, which respects locale settings, but for various reasons we're actually using number_format(), which doesn't.

So at the moment there isn't a setting for this.

ok thank you for the answer. Is it possible to use money_format() in the future? A correct format of a price in a shop is important for my client.

Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't think we'll move to money_format() but we will try to add an option for the thousands separator.