Creating a coupon with restrictions

The coupon system built into WooCommerce isn't simplistic. There are all sorts of limitations you can add on to coupons to make sure that they're only used in the right way. You can create coupons for specific users, coupons that can be used a certain number of times, or coupons that are limited to certain amounts.

We'll be creating a coupon that you can give out at a conference. It can only be used 100 times, it will only be active for a month, and it can only be used on orders over $50. This will make sure that you don't lose money on your promotions but users still get a good deal.

How to do it...

We'll be creating a regular coupon and then tweaking a few extra settings to add the appropriate restrictions. Let's take a look at the following steps:

  1. From the WordPress admin, go to WooCommerce | Coupons.
  2. Click on Add Coupon.
  3. Enter the code you want in the Coupon code field.
  4. Enter the discount you want in the Coupon amount field.

    We've configured all of the basic settings. Now we need to add the setting to restrict the coupon.

  5. Click on the Usage Restriction tab and you'll see a ton of settings you can use to restrict how the coupon is used.
    How to do it...
  6. Enter 50 into the Minimum spend field.
  7. You can optionally restrict the coupon to certain products or categories on this tab.
  8. Click on the Usage Limits tab.
  9. Enter 100 into the Usage limit per coupon field. This way, only the first 100 people can use the code.
  10. Click on the General tab.
  11. Enter the expiration date in the Coupon expiry date field.
  12. Click on Publish.

There's more...

If you want to bulk-generate coupons, you can use the Smart Coupons extension, which is explained in the next recipe.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset