Warm tip: This article is reproduced from serverfault.com, please click

Prestashop unit price decimal configuration

发布于 2018-09-03 07:41:29

I've got a problem with my prestashop v1.7.2

I want to set the unit selling price with 4 decimals. In prestashop I can set this configuration but all my price are affected. I just want the unit selling price...

I try to modify my product controllers to change number format but prestashop has the last word.

Any ideas?

Questioner
Valentin Bregeon
Viewed
0
Rolige 2018-09-03 21:30:24

You need change it from /translations/cldr/.

Edit the file main--xx-XX--numbers, where xx-XX is the language you want to change, this mean, if you have more than one language, you need do this change for each one.

Locate a code like this "accounting":"\u00a4#,##0.00;(\u00a4#,##0.00)","standard":"\u00a4#,##0.00", note, this is for en-US, so, depending on the language could change a little bit, but the "standard" will always be immediately after the "accounting"

And now just add the 4 digits, like this "accounting":"\u00a4#,##0.0000;(\u00a4#,##0.0000)","standard":"\u00a4#,##0.0000"

NOTE: After the change you need clear all the cache, including the browser cache.