eduu1988 Posted November 23, 2020 Share Posted November 23, 2020 Hi, I'm new here. It's and honor to post my first doubt/problem. I'm working with a Prestashop 1.6 The problem is: I set a specific price for one product based on volume (let say, 5% discount from 100 units or more), because of the item price without discount is very small (0,05€), that 5% of discount isn't enough to lower de price of each item at least 0,01€ (that would be a 20% discount)... so none discount is applicated. When I set a discount to 11%, it rounds up to 20%, in order to set the discount price per unit to its minimum 0.01€. I've seen that in the template, the "percentage_discount" is calculated based on the price with and without discount (0,05€ and 0,04€), so it allways rounds to 20%, 40%, 60%... etc. I supposed that the percentage_discount should not be calculated that way, but, in any case, I think the problem could be solved if the prices with and without discount wouln't be rounded to two decimals (0,05€, 0,04€, etc). They could be displayed rounded with two decimals but internaly the calculations to be made with a lot more of them. How can this be achieved? Any ideas? Thank you very much in advance. 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