TFPtMaster Posted January 28, 2015 Share Posted January 28, 2015 Hello guys I'm having a huge problem with the discounts. Everytime i make a promo by add a amount to make discount instead of a percentage the value displayed in FO, both in homepage, product listing and product page is wrong. I get values like 17% when the real discount is 13%. This is not fair for us and for the client. Can anyone help me with this problem? I'm using prestashop 1.5.6.1. Regards Link to comment Share on other sites More sharing options...
tomerg3 Posted January 28, 2015 Share Posted January 28, 2015 Are you using the default theme, or a custom theme? If custom, try with the default theme. Make sure to attach screenshots and a link to the product for a better chance to get help. Link to comment Share on other sites More sharing options...
TFPtMaster Posted January 29, 2015 Author Share Posted January 29, 2015 Are you using the default theme, or a custom theme? If custom, try with the default theme. Make sure to attach screenshots and a link to the product for a better chance to get help. I there Thanks for the reply. I'm using default theme but with a lot of changes. Link to comment Share on other sites More sharing options...
tomerg3 Posted January 29, 2015 Share Posted January 29, 2015 A screenshot without a link is useless, as we cannot look at the code. I would advise using a clean default theme, and see if the issue is with PS or with the changes you made to the theme. Link to comment Share on other sites More sharing options...
TFPtMaster Posted February 13, 2015 Author Share Posted February 13, 2015 (edited) Hi there again. I started using the percentage instead of value and i kind fixed... at least for a little bit. I really need to be able to add the correct percentage when i add a value in discount. Can please someone help me. This is really important. I don't understand why prestashop does that. An example http://www.audiophonics.fr/en/stands-hifi/j003sc-meuble-hifi-support-verre-aluminium-silver-076m-p-7191.html The promo should be 10% displays 15% Edit: I know the theme is completly modified but i can't found the problem Edited February 13, 2015 by TFPtMaster (see edit history) Link to comment Share on other sites More sharing options...
TFPtMaster Posted February 13, 2015 Author Share Posted February 13, 2015 Maybe someone can help me with the smarty -{($product->specificPrice.reduction * 100 / $productPrice)|round:0}% Link to comment Share on other sites More sharing options...
TFPtMaster Posted February 13, 2015 Author Share Posted February 13, 2015 After a little bit more of work i got it. -{({$product->specificPrice.reduction * 100} / {convertPrice price=$productPriceWithoutRedution})|round:0}% Link to comment Share on other sites More sharing options...
doekia Posted February 13, 2015 Share Posted February 13, 2015 Not too sure math dictate something more like productPrice * (1-reduction) with reduction being 0.1 for 10% or productPrice * 1-(reduction/100) if reduction value is 10 for 10% Link to comment Share on other sites More sharing options...
Recommended Posts