Set decimals and precision

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!
User avatar
loeffe1
Posts: 52
Joined: 21 Feb 2020, 10:33

Set decimals and precision

Post by loeffe1 » 17 Feb 2023, 11:34

This doesn't seem to be working:

Code: Select all

plugin.tx_aimeos {
  settings {
    client {
      html {
        common {
          format {
            decimals = 0
            seperatorDecimal = ,
            seperator1000 = .
          }
        }
      }
    }
  }
}

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

Re: Set decimals and precision

Post by aimeos » 19 Feb 2023, 10:31

You can change the number format to an explicit one (not based on locale) if you overwrite the Number view helper with the Standard version here:
https://github.com/aimeos/aimeos-typo3/ ... #L181-L204

Here's described how you can overwrite view helpers in TYPO3:
https://aimeos.org/docs/latest/typo3/ex ... iew-helper

This class must be used instead:
https://github.com/aimeos/aimeos-base/b ... andard.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply