Jump to content

Decimals on Products prices and Percent discount


gianvi

Recommended Posts

Hi All,

i do a serch in the forum but none answered to what i'm lookin for.

 

I have understand how to manage prices to have the correct amount on the shop; i mean

regular price 99,00

discount 12%

discounted price 87,00 instead of 87,12

but now there is the problem that the % discount value show a value with 4 decimals 12,1212

 

How is possible to take out this decimals from view only, but leaving them in the db for calculation otherwise there will be problem on checkout?

 

i look inside prestashop/themes product.tpl, there is something regarding the Reduction %

<p id="reduction_percent">{l s='(price reduced by'} <span id="reduction_percent_display">{$product->specificPrice.reduction*100}</span> %{l s=')'}</p>

 

here can be made something ??

 

If possible in this way we could have a fixed discounted prices and a % discount that shows the averaged discount rate on product page but on calculation nothig will be changed.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

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...