Liliana M Posted July 7, 2017 Share Posted July 7, 2017 Hi, How can I remove the decimals from the prices? The new PS 1.7.2 does not have the option or I don't see it. I'm setting up a new online store for Colombia and here in Colombia we don't use decimals. I really appreciate your help Regards, Link to comment Share on other sites More sharing options...
SLiCK_303 Posted July 8, 2017 Share Posted July 8, 2017 (edited) Shop Parameters->General ...? hmmm....didn't seem to do anything on my test site. next..... Edited July 8, 2017 by SLiCK_303 (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted July 9, 2017 Share Posted July 9, 2017 Did you load the localization pack for your country? Link to comment Share on other sites More sharing options...
Liliana M Posted July 9, 2017 Author Share Posted July 9, 2017 It looks like PS 1.7 is missing some parameters Please see image here to what I mean http://imgur.com/a/REfqP Link to comment Share on other sites More sharing options...
musicmaster Posted July 9, 2017 Share Posted July 9, 2017 (edited) I see. Strange that they did that. They even changed the database accordingly. What you can do is changing the code yourself. In classes\currency.php on line 112 you find the following code: $this->decimals = 1; Try setting this value to zero. There is a bug on this in the Forge: http://forge.prestashop.com/browse/BOOM-2065 Please vote for it. It is not much but it is the only "power" we have to have influence. Edited July 9, 2017 by musicmaster (see edit history) Link to comment Share on other sites More sharing options...
Liliana M Posted July 9, 2017 Author Share Posted July 9, 2017 I did the change but It didn't work I will check the link you sent me Thank you very much. Link to comment Share on other sites More sharing options...
haunter Posted September 28, 2019 Share Posted September 28, 2019 //$formattedNumber .= self::DECIMAL_SEPARATOR_PLACEHOLDER . $minorDigits; Formatter.php in PS 1.7.6 row 125. But I didn't tested all side effects which it can have yet. Link to comment Share on other sites More sharing options...
Paul MCC Posted November 5, 2019 Share Posted November 5, 2019 Hi, Find translation folder / CLDR and edit file 'main_xx_XX-number' --> "#,##0.###" change to "#,##0" Find localization folder /CLDR/Core/common/main - edit file for your language XX.xml find line ... <decimalFormat> <pattern>#,##0</pattern> </decimalFormat> and <currencyFormatLength> <currencyFormat type="standard"> <pattern>#,##0 ¤</pattern> </currencyFormat> <currencyFormat type="accounting"> <pattern>#,##0 ¤;(#,##0 ¤)</pattern> </currencyFormat> </currencyFormatLength> don't forget to clear cache file Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now