I am looking to add the ability to apply a coupon to all products after a certain quantity. For example, a customer purchases 5 tickets and uses a valid coupon code. The first ticket will remain at full price while tickets 2 – 5 will receive the discount.
The discount should be reflected on the cart page (where the coupon code is entered) as well as the checkout page (where the purchase is completed).
I would love some direction/psuedo code on how to accomplish this.
Read more here:: Nth Product Discount – Woocommerce Coupons