Currency problems

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
NeroCastorena
Posts: 1
Joined: 27 Jan 2023, 21:35

Currency problems

Post by NeroCastorena » 27 Jan 2023, 22:37

Hi, i change the currency to MXN but the '','' and ''.'' are wrong, for example i need the price to show like this $1,912.00 mxn and instead it looks like this $1.912,00 mex, how can i fix this?

I'm using aimeos 2022 and php 8.1

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

Re: Currency problems

Post by aimeos » 28 Jan 2023, 12:12

The number formatting depends on the used language, not the currency and the PHP Intl extension is responsible for that formatting. As Mexico uses a different number formatting than Spain, you have to use "es_MX" as language to get the correct number formatting.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply