Introduction:
Discount rules for Woocommerce plugin allows you to exclude specific products, categories, or attributes from the discount rules in your store. This means you can set up specific rules to determine which products should not be eligible for the discounts offered by the plugin.
For example, let's say you have a WooCommerce store that sells various electronics products, including laptops, smartphones, and tablets. You want to create a discount rule that offers a 10% discount on all products in your store except for smartphones.
Here are some examples of different scenarios based on excluding products:
Get 30% discount on all products excluding Hoodie and T-shirt (Excluding selected products, Product A and Product B)
Enjoy 20% discount on all products excluding watch category (Excluding specific categories)
Get 10% discount on the whole cart excluding the On-sale products (Excluding On-sale products)
Get $5 discount on all products excluding the products which has the attribute “Black” colour (Excluding specific attributes)
To exclude specific products/ categories from getting a discount, you need to have the Discount Rules PRO plugin installed and activated on your site. You can purchase the PRO version by clicking on the provided button.
Now, let's take a closer look at each example in detail.
Example 1: Get 20% discount on all products excluding Hoodie and T-shirt (Excluding selected products, Product A and Product B)
This discount offer provides a 20% discount on all products in cart when purchasing any products other than the specified exclusions i.e.Hoodie and T-shirt.
To create this rule, follow these steps:
Creating a Discount Rule:
Go to WordPress dashboard -> WooCommerce -> Discount Rules -> Click on “Add New Rule” button
Choose “Product Adjustment” as the Discount type.
Then configure the discount rule as seen in the below screenshot:
To configure the rule with “exclude” condition, follow these steps:
Choose "All Products" (storewide) from the filter options since this example offers a discount on all products.
Include an additional filter “Products” to exclude specific products and choose "Not in list" to exclude the specified products.
Enter the products to be excluded, such as Hoodie and T-shirt by typing a few characters of the product name in the second filter.
Set the discount type to a 20% percentage discount. You can also choose a fixed discount or fixed price per item.
Click on the "SAVE" button once the rule configuration is complete.
Now, customers will receive a 20% discount on all products in their cart, excluding Hoodie and T-shirt. The discount will be applied automatically when purchasing any products from the store.
The following screenshot shows how the discount is applied on the cart page:
Example 2: Enjoy 20% discount on all products excluding watch category (Excluding specific categories)
This discount provides a 20% discount on all products except for those belonging to the “watch” category. Here, customers will receive the discount on all products except when purchasing any products other than those in the specified category.
To create this rule, follow these steps:
Creating a Discount Rule:
Go to your WordPress dashboard -> WooCommerce -> Discount Rules -> Click on the "Add New Rule" button.
Choose "Product Adjustment" as the discount type.
Here is the screenshot of the rule configuration that follows,
To configure the rule with “exclude” condition, follow these steps:
Choose "All Products" (storewide) from the filter options since this example offers a discount on all products.
Include an additional filter “Category” to exclude specific categories and choose "Not in list" to exclude the specified category.
Enter the category to be excluded, such as "Watch” by typing a few characters of the category you are trying to exclude.
Set the discount type to a 20% percentage discount. You can also choose a fixed discount or fixed price per item.
Click on the "SAVE" button once the rule configuration is complete.
Now, customers will enjoy a 20% discount on all products in their cart, excluding the watch category. The discount will be automatically applied when purchasing any other products from the store.
The following screenshot shows how the discount is applied on the cart page:
Example 3: Get 10% discount on the whole cart excluding the On-sale products (Excluding On-sale products)
This discount provides a 10% discount on the entire cart, excluding any products that are marked as On-sale (On-sale products are the products which have both regular price and sale price). Customers will receive the discount on their entire purchase when buying products other than the specified exclusions.
To create this rule, follow these steps:
Creating a Discount Rule:
Go to the WordPress dashboard -> WooCommerce -> Discount Rules -> Click on the "Add New Rule" button.
Choose "Cart Adjustment" as the discount type.
Here is the screenshot of the rule configuration that follows:
To configure the rule with “exclude” condition, follow these steps:
Choose the "All Products" (storewide) option from the filter options, as this example offers a discount on all products.
Include an additional filter “On sale products” by adding the On-sale products and choose the "Exclude" option to exclude the On-sale products.
Set the discount type to a 10% percentage discount. You can also choose a fixed discount or fixed discount per product.
Provide a discount label or coupon name for this discount.
Click on the "SAVE" button once the rule configuration is complete.
Now, customers will receive a 10% discount on the entire cart, excluding any products which come under On-sale. The discount will be automatically applied when purchasing products other than the excluded On-sale items.
The following screenshot shows how the discount is applied on the cart page:
Example 4: Get $5 discount on all products excluding the products which has the attribute “Black” colour (Excluding specific attributes)
This discount offer provides a $5 discount on all products except for those with the attribute 'Black' colour. Customers will receive the discount on all products except when purchasing any products other than the specified attribute exclusions.
To create this rule, follow these steps:
Creating a Discount Rule:
Go to the WordPress dashboard and navigate to WooCommerce -> Discount Rules. Click on the 'Add New Rule' button.
Choose 'Product Adjustment' as the Discount type.
Configure the discount rule as seen in the screenshot below:
To configure the rule with “exclude” condition, follow these steps:
Choose 'All Products' (storewide) from the filter options, as this example offers a discount on all products.
Include an additional filter “Attributes” to exclude products with specific attributes and choose 'Not in list' to exclude the specified attributes.
Enter the attribute 'Black' as the exclusion.
Set the discount type to a $5 fixed discount. You can also choose a percentage discount or fixed discount per product.
Once the rule configuration is complete, click on the 'SAVE' button.
Now, customers will receive a $5 discount on all products in their cart, except for products with the attribute 'Black' colour. The discount will be automatically applied when purchasing any other products from the store.
The following screenshot shows how the discount is applied on the cart page:
The above discussed scenarios require a PRO version.
Next steps:
You may also want to check out these helpful guides :
Take a look at this video to learn how to exclude products from the discount:
Still unclear?
If you need any assistance, please create a support request at our ticket system. We are always happy to assist you :)