How to change Number of decimals in prestashop 1.7

Prestashop 1.7 come with lot of new features and major change from 1.6 version,this version based on symfony framework one of geat php frameworks. but it come with some bugs too

one of these bugs is The decimals feature does not work anymore even if the feature is on the Back Office.price formating not change even you change the number of decimals

thanks to an member of prestashop forum there is a solution for this, just follow steps to change the format:

Step 1: 

open this file using ftp and notepad++ or sublime text


if you are using another language than english, you will find the file like this main-ISO-numbers


Search for this string “currencyFormats-numberSystem-latn” using your text editor


you need to edit this code “standard”:”\u00a4#,###0.000″

\u00a4 : mean the currency

#,### : the format

0.000: mean type 0 is integer

so to change the format to 4 decimals you need to put \u00a4#,####0.0000

to change to 2 decimals put \u00a4#,##0.00


save file and refrech your page 😀


Like and share this article or post your comment if you have a good solution



    1. trandinhhong
      On February 7, 2018 at 3:27 am

      Excelent! Thanks You!

    1. Cynthia
      On February 1, 2019 at 11:30 pm

      Does not work with multiple currencies – I have ruble (no decimals) and Euro (2 decimals) – is there a way to fix this ?

    1. Jaime
      On March 6, 2019 at 8:11 pm


      I have english and spanish language/currency and spanish as default but I cant make the currency format different when I select currency at the prestashop home page to show with no decimal when I choose CLP currency and with 2 decimals when I choose US$ currency to show in the front… I have changed translations/cldr/main–es-Es–numbers to show no decimal at standard and accounting and it shows ok for CLP currency with no decimal, but it shows me the US$ currency with no decimals either and I need it with 2 decimal for US$ currency format when I select currency at the front.
      I have checked the main–en-En–numbers file and it is set with 2 decimals as it should be in standard and accounting for english language but it doesnt count when I select dollars as currency in the front… I have set 2 decimals in admin/parameters/number of decimals
      can you help me?

    1. HimanshuBisht
      On April 22, 2019 at 4:50 pm

      It Works like a charm. Thank you so much!


Leave a Comment to trandinhhong Cancel Comment