1. Documentation /
  2. Smart Coupons /
  3. How to restrict coupons by product taxonomy

How to restrict coupons by product taxonomy

Smart Coupons provide a powerful, “all-in-one” solution for gift cards, store credits, discount coupons, and vouchers extending the core functionality of WooCommerce coupons.

Smart Coupons also provides advanced coupon restrictions based on product taxonomy, product attributes, user roles and others.

If you want to exclude all your popular subscription products from coupon discounts, or include discounts on all products sharing the common tag and other product-related use cases, this coupon taxonomy restriction is a great boon.

One of the best tricks to save time and effort when dealing with a large product portfolio.

Smart Coupons provides full flexibility to include/exclude product taxonomy from the coupon getting applied. The following taxonomies can be included/excluded:

  1. Product type
  2. Product tags
  3. Product visibility
  4. Product shipping class

Steps to restrict coupons by taxonomy

↑ Back to top
  1. Go to your WordPress Admin panel. Click on Marketing > Coupons.
  2. Create a new coupon or open an existing one. Enter the required details.
  3. Now click the ‘Usage restriction’ tab, scroll down to locate the ‘Taxonomy’ option.
  4. Click the ‘Add taxonomy restriction’ button to select any taxonomy.
  5. Choose Include / Exclude from the drop-down.
  6. Search and select values
  7. Click on the ‘+’ button to add more taxonomy restrictions as required.
  8. Publish/Update the coupon.

That’s it. Now the coupon is set up successfully with restrictions based on taxonomy.

Note – You can also combine other coupon restrictions in combination with the taxonomy restrictions.

How taxonomy validation works

↑ Back to top
  • All the different taxonomy restrictions that are added to a coupon need to be satisfied in order for the coupon to work. The ‘AND’ logic is followed when there are multiple taxonomy restrictions.
  • When there are multiple values added in a single taxonomy restriction field, the ‘OR’ logic is followed. For example, if we have two different product shipping classes (heavy and fragile) mentioned, then the product in the cart must belong to either one of the heavy or fragile shipping classes for the coupon to get applied.