Arsenal21 / stripe-payments

Stripe Payments Plugin for WordPress
11 stars 8 forks source link

Allow coupon usage for specific products only #57

Closed erommel closed 5 years ago

erommel commented 5 years ago

As requested by customer:

  1. Coupon codes. So right now if I set up a coupon code and enable it for a product that code will apply to all products.

But for example, if I want to do it product wise - so for example I have 2 products and I want to enable only 10% discount on one and a 30% discount on the other.

Is there a way to do this at the product level? Otherwise people can use both the 10% and 30% codes on any of the 2 products. But I'd like it to be explicit.

We can add additional settings field on coupon edit page that would allow to specify which products coupon is valid for. Should be radio button with two options: "all products" or "specific products". When the latter is selected, user can select required products using checkboxes.