This is my first question here, thus please have mercy. :)
I have minimum and maximum number of products and minimum and maximum price, and I want to calculate the discount depending of number of bought products.
minProducts = 1
maxProducts = 4000
minPrice = 0.8
maxPrice = 3.2
- If they buy 4000 products then is the price 0.8 per product
- if they buy 800 products then is the price 1.6 per product
- and if they buy only one product then is the price 3.2.
How can I calculate the price per product if they buy for example 860 or 520 products?
Thanks in advance