Currently I'm on a magento project and somehow, I can't understand the logic behind this last page.

The Currency that I've got is EURO, and in the /vendor/magento/zendframework1/library/Zend/Locale/Data/pt_PT.xml says that the numbers are grouped by "." and decimal cases by ",".

The screenshot below shows on the right side, how its supposed to be. However, the left side is on a completly different pattern and I can't seem to find where to make this change.

enter image description here

  • In euro currency the (,) comma is used as decimal separator, while the (.) dot (point) is used as the thousand value separator like if some where it is written 125,45 it means that is 125 euro and 45 cents & if it is written as 1.525 it means that is 1 thousand 5 hundred & 25 euros please refer this – Abhishek Tripathi Apr 11 at 9:49
  • And magento is working in the similar way so why do you want to change it? – Abhishek Tripathi Apr 11 at 9:51
  • Thing is, I changed the grouping so that the dot represented the thousands and the comma represents the decimals. However, this was only applied in certain areas of the website, so the solution that I made was formatting the price whenever I found it to be incorrect. This is the last place that the standard on the left is incorrect and I have no idea where to change it to be in order with what is at the right – abr Apr 11 at 10:27
  • @abr You shouldn't have to customize the format like you have though. Magento will format the numbers in the way you are attempting based on the locale & currency you set in your store. What locale do you have set in your store? It should be one that formats this way. – rain2o Apr 11 at 12:12
  • I've removed the changes in the zend data xml and my locale is set to Portugal on the backoffice. However, the issue maintains (incorrect number format all along the website) – abr Apr 12 at 11:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.