Change price separator not working

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
daniel
Posts: 28
Joined: 27 Jul 2020, 13:22

Change price separator not working

Post by daniel » 18 Aug 2020, 13:36

Hi,
i tried to change the separator for frontend output of prices from e.g. "9,99" to "9.00". I tried it with setting:
"plugin.tx_aimeos.settings.client.html.common.format.separatorDecimal = ."
but no luck.

I checked the template "price-standart.php" where the price output is:
"$this->number( $priceItem->getValue(), $priceItem->getPrecision() )"

output of $priceItem->getValue() is the price with "." > "9.99", thats what i want.

How can i can i change price output from "," to "."?

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Change price separator not working

Post by aimeos » 19 Aug 2020, 07:34

That configurating has gone since two or three years. Instead, the number view helper uses the php-intl extension for creating localized numbers. Please make sure you use the correct language, i.e. "de" will generate "9.999,99" while "de_CH" will generate "9'999,99" as far as I remember. "9,999.99" is returned by "en" as language.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

daniel
Posts: 28
Joined: 27 Jul 2020, 13:22

Re: Change price separator not working

Post by daniel » 19 Aug 2020, 07:59

ok, thanks. If i change language to "en" all texts are also in english, so thats no option for me. Or is ist possible to set this another way?

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Change price separator not working

Post by aimeos » 19 Aug 2020, 08:02

You can overwrite the Bootstrap code and add your own number formatter:
https://aimeos.org/docs/TYPO3/Overwrite ... iew_helper
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

daniel
Posts: 28
Joined: 27 Jul 2020, 13:22

Re: Change price separator not working

Post by daniel » 19 Aug 2020, 13:12

Thanks, that works

Post Reply