Making product-specific coupon codes in WooCommerce
Sometimes when creating coupon codes in WooCommerce, you will want to set that coupon code to only be valid for a specific product. In this article, we will show you how to set a coupon code to be valid for a specific product.
If you do not know how to create a product yet, take a look at our article on creating coupon codes in WooCommerce.
If you need to exclude a product from a coupon code, take a look at our article on excluding products from coupon codes.
First, you will need to be within the edit/creation screen for the coupon that you are making product-specific.
Within the coupon creation page, click the Usage Restriction tab located within the Coupon Data box.
Inside the Usage Restriction tab, there is a field labeled Products. Within this field, you will be able to search for any products within your WooCommerce installation. Simply search for the product that you want to make the coupon code active for, then click on it to add it. If you want to add additional products that the coupon will be active on, you may add them within this same box as well.
In addition to making the coupon active for a single product, you may include full categories as well. To do so, use the same steps as you used for a single product, but enter it into the Product categories box instead.
When you've set all of your products that will be discounted with your coupon code, be sure to save your changes by clicking either the Publish or Update button depending on if your coupon has already been published.
Now, you will be able to set coupons to become active on specific products.