Need to apply Discounts depending on Customer Order Quantity across all the orders of that customer.
Need to apply discounts depending on customers orders quantity. Means Customer initially orders 100 then no Discount. If he ordered 200 then total quantity(200+100=300) then apply 10% discount. For next sales order if quantity = 300(300+200+100=600) then apply 20% just like that.
Apply discounts depending on total quantity customer ordered across all the orders of that customer.
Is there any Solution for this requirement ? Appreciate your help on this.
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):