Jump to content

How to Remove price Decimals on both BO & FO


farzzin

Recommended Posts

hi

as you know prestashop default price is like this >>> 45.00 and you can add decimals to your price

 

BUT there is a problem...although i disabled decimals on my store in default currency page,products seem to have no decimals in FO but actualy there are more than two zeros

there is two zeros when i want to add a price for a product and 6 zeros come from somewhere i realy dont understand about it.

there is three images from backoffice that helps you know much better about the issue

i will be so happy if you help me to solve this problem.

thank you all

post-1052935-0-27519300-1459549987_thumb.jpg

post-1052935-0-42812400-1459549996_thumb.jpg

post-1052935-0-81469800-1459550245_thumb.jpg

Link to comment
Share on other sites

One cause of your problem may be that your template hardcodes the number of zeroes.

 

Note that Prestashop stores the prices (ex VAT) in the database with 6 decimals. So your template should always do some casting.

ok thanks for your response but actualy i didnt understand what to do exactly :D    how can i fix the issue :-( ??!! :rolleyes: :rolleyes:

Link to comment
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...