Jump to content
shahin0x

remove decimal part of price in back office

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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}

  • Like 1

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More