Your usage rules give me this result: Discount is 30€ (A + B) but it should be the cheapest two = 26€ (B + C). I actually need always the cheapest products (B + C) to be discounted 100%. I tried with different values and eery time it’s not taken the cheapest products for free.
Yes, you are right. But I would like to have this:
Buy 2 = Pay 1 (cheapest 1 or same price free)
Buy 3 = Pay 2 (cheapest 1 or same price free)
Buy 4 = Pay 2 (cheapest 2 or same price free)
Buy 5 = Pay 3 (cheapest 2 or same price free)
Buy 6 = Pay 3 (cheapest 3 or same price free)
.
.
But the only issue I have is that the script is not taking the cheapest product(s) or free/as a discount.
But for business it makes only sense to give the cheapest ore same price for free/discount.