wagnerwagner / merx

Merx is a plugin to create online shops with Kirby.
https://merx.wagnerwagner.de
104 stars 10 forks source link

formatPrice() doesn't seem to insert a thousands separator #4

Closed leuys closed 4 years ago

leuys commented 4 years ago

The formatPrice() function doesn't seem to insert a thousands separator, even when locality is set to German. Maybe it would be also be possible to have a config option, as with ww.merx.currencyPositionPrecedes for example.

Something like: 'ww.merx.currencyThousandsSeparator' => '.'

Excerpt of the options currently set in my config.php:

'locale' => 'de_DE.utf-8', 'ww.merx.currency' => 'EUR', 'ww.merx.currencySymbol' => '€', 'ww.merx.currencySeperateBySpace' => true, 'ww.merx.currencyPositionPrecedes' => false,

tobiasfabian commented 4 years ago

83e33145a13e0e51e84a98dcf1981e10cf5c3ed1

tobiasfabian commented 4 years ago

I’ve added this option to the latest beta.