gianvi Posted September 6, 2011 Share Posted September 6, 2011 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. 1 Link to comment Share on other sites More sharing options...
gianvi Posted September 8, 2011 Author Share Posted September 8, 2011 none can say something on this issue?? Link to comment Share on other sites More sharing options...
gianvi Posted September 15, 2011 Author Share Posted September 15, 2011 still waiting if someone know how to manage it .... Link to comment Share on other sites More sharing options...
seeyei Posted October 28, 2011 Share Posted October 28, 2011 still waiting if someone know how to manage it .... <span id="reduction_percent">{l s='(price reduced by'} <span id="reduction_percent_display">{round($product->specificPrice.reduction*100)}</span> %{l s=')'}</span> 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