I have a little problem with adding a discount to an order. Before I should tell you more about the requirements.
Every customer can add several products to his cart. In each category are same types of products. So now if you add one product it costs you the normal price (lets say 20 dollars). So the customer can add then different other products from the same category and the requirement is now, that it wont higher the price until you have four products of the same category in the cart.
Little example:
Category A
- Product I ($20)
- Product II ($20)
- Product III ($20)
- Product IV ($20)
Customer A orders 4 times Product I > Price = $20
Customer B orders 1x Product I and 1x Product II > Price = $20
Customer C orders 2x Product III and 4x Product IV > Price = $40
As you can see, if you have more than four products of the category it highers the price! So one to four products = price * 1, five to eight products = price * 2, nine to twelve = price * 3 etc.
My problem is to find the calculating of the price itself, so that I can add a discount or prefiltering it. Maybe you can add some advices or something!