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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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