segura Posted September 20, 2013 Share Posted September 20, 2013 Hi guys, The price of one of my products is 3.50. After a reduction of 25% the price shown is 2.63 (instead of 2.65). I am ussing "classic rounding". Could you give me a hand? Thanks Link to comment Share on other sites More sharing options...
SmartDataSoft Posted September 20, 2013 Share Posted September 20, 2013 will you share your tpl code , i think there is bug on tpl smarty code Link to comment Share on other sites More sharing options...
El Patron Posted September 20, 2013 Share Posted September 20, 2013 25% of 3.50 is .875 3.50 - .875 = 2.625 classic rounding as I understand it would be 2.63 pretty sure that is how it works Link to comment Share on other sites More sharing options...
segura Posted September 20, 2013 Author Share Posted September 20, 2013 I see. 2.63 looks weird. Any idea of how rounding to the next decimal ended in 5 or 0? Ej. 2.63 --> 2.65 Link to comment Share on other sites More sharing options...
El Patron Posted September 20, 2013 Share Posted September 20, 2013 that's the nature of discounts, you can't really change the rounding then it would not be a true percentage. but just because I did it, here is a link to a module that I am rather proud of. (note: it does not touch products with specific prices (disounts)...for the same reason I mentioned above. http://www.prestashop.com/forums/topic/221705-module-prestashop-price-charming-psychological-pricing-x99-xxxx98-x900/ Link to comment Share on other sites More sharing options...
segura Posted September 20, 2013 Author Share Posted September 20, 2013 Thanks, I will give it a try Link to comment Share on other sites More sharing options...
Recommended Posts