Change price separator not working
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!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Change price separator not working
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 "."?
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 "."?
Re: Change price separator not working
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, give us a star
If you like Aimeos, give us a star
Re: Change price separator not working
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?
Re: Change price separator not working
You can overwrite the Bootstrap code and add your own number formatter:
https://aimeos.org/docs/TYPO3/Overwrite ... iew_helper
https://aimeos.org/docs/TYPO3/Overwrite ... iew_helper
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Change price separator not working
Thanks, that works