shahin0x Posted January 18, 2019 Share Posted January 18, 2019 Hello In back office, default price style is 0.000000 is there a solution to remove decimal part of price? the price be just an integer number without decimal. Link to comment Share on other sites More sharing options...
musicmaster Posted January 22, 2019 Share Posted January 22, 2019 Your first task is to find the right template. It is somewhere under the template directory that you find under your admin directory. Once you have found the price it is a matter of rounding. So you would change ($price} to {$price|round:0} 1 Link to comment Share on other sites More sharing options...
shahin0x Posted January 25, 2019 Author Share Posted January 25, 2019 On 1/22/2019 at 11:36 PM, musicmaster said: Your first task is to find the right template. It is somewhere under the template directory that you find under your admin directory. Once you have found the price it is a matter of rounding. So you would change ($price} to {$price|round:0} just editing template files is OK? shouldn't i edit any PHP file for this purpose? Link to comment Share on other sites More sharing options...
musicmaster Posted January 25, 2019 Share Posted January 25, 2019 No need for that. Smarty can do the rounding. And by keeping such changes in the template you make things easier for when you might want to upgrade. 1 Link to comment Share on other sites More sharing options...
shahin0x Posted January 25, 2019 Author Share Posted January 25, 2019 4 minutes ago, musicmaster said: No need for that. Smarty can do the rounding. And by keeping such changes in the template you make things easier for when you might want to upgrade. Thank you so much Link to comment Share on other sites More sharing options...
JirkaDeLucina Posted October 9, 2019 Share Posted October 9, 2019 I have the same problem - only in BO. I would like change format from 0.000000 to 0.00. How can I do it please? In FO I have right format, only all prices in BO are in bad format for me. Thank you very much. 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