I'm hoping someone can help me figure out a solution to this issue.
I have some subscription products set-up in my store and they're set-up in the following quantities: 1 product/month, 2 products/month, 6 products/month, and 12 products/month. (Each subscription item has a unique SKU/product code.)
I have 4 discount codes - one for each quantity, so:
- 1 Product (10% off)
- 2 Products (15% off)
- 4 Products (20% off)
- 6 Products (25% off)
The coupon code is passed with the add-to-cart URL as a param and is restricted by product code in Foxy to prevent misuse.
The issue I'm running into is the following scenario:
Let's say a user adds a 1 product/month subscription to their cart. They change their mind, remove the item from the cart, and then go to try and add another subscription product. They're hit with an error along the lines of "coupons are not combinable" (I don't want to make them combinable if I can avoid it.)
So when they add the new subscription product, no discount gets applied. Is there a way to remove the coupon code altogether if the product is removed from the cart?
Thanks in advance!