These 27 Product and cart item-based discount conditions let you apply discounts based on specific product details of your WooCommerce store.
1. Product ID-Based Conditions: #
A Product ID in WooCommerce is a unique number given to each product automatically. It helps identify products in the database.
This Product ID condition filter lets you apply discounts to products based on their specific IDs. It’s an excellent option to provide discounts on different specific products.
You can choose from six methods:
- Equal: Matches a specific ID.
- Not Equal: Excludes a specific ID.
- Greater Than: Target IDs higher than a specific value.
- Greater Than or Equal: Includes IDs equal to or higher than a value.
- Less Than: Target IDs lower than a specific value.
- Less Than or Equal: Includes IDs equal to or lower than a value.
- Between: Applies to IDs within a specified range.
Such as:
Let’s set up a condition where we will be applying a 5% discount to every product which have an ID number equal to or more than 595.
So, set up the discount and product rules first. Then, from the Conditions filter select ‘ID’. Choose the method as ‘Greater Than or Equal’. After that, input the value 595.
If a customer selects a product that has the ID 595 or more than that, they are going to get a flat 5% on it.
For instance, our product “Ailun 3 Pack Screen Protector for iPhone 14 Pro” consists of ID no 597 (More than 595).
Whenever a customer orders it, he or she will get a 5% discount on it and the price will come down to $6.65 from $5.
2. SKU Based Condition #
An SKU (Stock-Keeping Unit) is a unique code, usually a mix of letters and numbers, assigned to each product in your store for easy tracking and inventory management.
The SKU condition will let you apply discounts based on products’ SKU or stock-keeping unit numbers.
Example:
Let’s set up a fixed discount of $50 for products that have an SKU containing ‘GRE’.
Here, from the conditions section choose SKU and then select Contain. After that input the SKU – ‘GRE’.
This will ensure that any product containing this specific SKU(GRE) will get a $50 discount on it.
3. Title Based Condition: #
This condition allows you to apply discounts to products based on their title. You get to choose from multiple options:
- Equal: Matches an exact product title.
- Not Equal: Excludes a product with a specific title.
- Contain: Targets products with titles containing specific keywords.
- Does Not Contain: Excludes products with titles containing certain keywords.
- Start With: Applies discounts to products with titles that begin with a specific keyword or phrase.
- End With: Targets products with titles ending in a specific keyword or phrase.
For example:
Let’s set up a 10% discount for products with titles containing the keyword “Men“.
So, first, select all products and give a percentage discount of 10%. Now In the conditions section, choose “Title” and select “Contain”. Then enter the keyword “Men”. Save it.
Now, all the products which contain the word “Men” in their title will get a flat 10% discount on them.
As you can see, two of our products’ titles contain the word “Men” so the customers get a 10% discount on them.
4. Description Based Condition #
With this Condition filter, you can apply discounts based on the content of product descriptions.
For Instance:
Suppose you sell products in the USA or offer specific USA-variant products.
So, let’s set up a $25 discount on the products that have USA in their product description.
Choose all products, the discount type should be fixed discount, and input the value of $25.
This time In the conditions section,
- select the ‘Description’ filter
- choose the method ‘Contain’.
- Then input the keyword ‘USA’.
This ensures that any product with “USA” in its description automatically qualifies for the $25 discount.
For example, if a product’s original price is $1100, the discounted price will be $1085.
This setup is ideal for highlighting specific products and driving sales within that category.
5. Short Description Based Condition #
By using this condition, you can apply discounts based on specific keywords or phrases within the product’s short description.
To Give an Example:
Suppose you run a business selling gym accessories. Now, you want to offer a 10% discount on all products whose short descriptions do not contain the word “waterproof.” In other words, the discount will only apply to non-waterproof products.
So, set up the discount and product rules first. Then from the Conditions section-
- Select “Short Description”
- put the method on “Does not Contain”.
- Then, add the keyword “Waterproof”.
Once you save it, the discount will be applied to every product that does not contain the keyword ‘waterproof’ in it.
As you can see, the product shown above does not contain the word ‘waterproof’ in it, so a 10% discount has been applied.
But the product shown in the below picture contains the keyword ‘waterproof’ in it, so no discount has been applied to it.
6. Attribute Based Condition #
An attribute in WooCommerce is a characteristic that defines a product, such as color, size, or material. It helps customers filter and choose products based on specific features.
You can use this ‘Attribute’ condition filter to apply discounts based on specific product attributes, such as size, color, material, or any custom attribute assigned to your products.
Example:
Suppose you sell clothing items and want to create a $5 discount for all products that include the attribute ‘Color.’ So, once you are done with the discount and product rules, go to the ‘Conditions’ section and-
- Select ‘Color’ filter
- Then choose the method ‘In List’.
- Now add the attribute ‘Color’.
Now, any product with the attribute ‘Color’ will automatically qualify for the $5 discount.
7. Categories Based Condition #
With the ‘Categories’ condition, you get to apply discounts to products based on their assigned categories. It’s perfect for targeting specific groups of products for promotions.
Here, you can include or exclude specific categories from discounts using the “In List” and “Not In List” methods.
- In List: It simply means the category you want to include. So, when we include the “X” category only all the products in the specific ‘X’ category will be targeted.
- Not In List: It means the category you want to exclude. So, if you add category ‘X’ under “not in list”, all the products of your store will be targeted except products of category “X”.
Let’s say for instance:
Suppose you want to offer a big 50% discount on all products in the ‘Kids’ category.
Start by selecting all products and setting up a percentage discount of 50%. Now, in the conditions section Add the filter as “Categories”. Then the method should be ‘In List’ and then enter the category names as ‘Kids’.
All products under the ‘Kids’ category will automatically qualify for the 50% discount.
As you can see, one of our construction race track toys was priced at $25, but as it belonged to the ‘Kids’ category a 50% discount has been applied and the price was reduced to $12.50.
Here’s another Example:
Let’s offer a $15 discount on all the products except the ones in the “Men” Category.
Quickly set up a $15 fixed discount. Then in the conditions section select the ‘Categories’ filter as usual. Now, this time select the ‘Not In List’ method and add the ‘Men’ category.
Here, a $15 discount will apply to all the products except the ones in the ‘Men’ category.
8. Tags Based Condition #
With this condition, you can apply discounts to products based on their assigned tags. Tags help group products with similar features, making it easier to target discounts on specific product types or characteristics.
For Instance:
Suppose you want to offer a $100 discount on products tagged with ‘M3 Chip.’
So, first set up all the discount and product rules. Then in the Conditions section-
- Select ‘Tags’ filter
- Choose the ‘In List’ method
- Enter the tag ‘M3 Chip.’
- Save it
Any product assigned with the ‘M3 Chip’ tag will automatically receive the $100 discount.
The ‘Apple 2024 MacBook Air 15-inch Laptop’ tagged as ‘M3 Chip’ will qualify for the discount.
9. URL Based Condition #
You can apply discounts to products based on their URL or a specific part of the URL with this condition.
This filter lets you target pages or categories based on their URL structure to apply discounts to the right products, especially useful for custom or affiliate store setups.
Here’s an Example:
Suppose, you want to target and provide a 10% discount on the iPhone products and their accessories in your store. So, here you can target all the products that contain ‘iPhone’ in their URL.
So, from the Conditions section, select the ‘URL’ filter. Then choose the method ‘Contain’. Input the word ‘iPhone’ in the value field.
Now, all the products with ‘iPhone’ in their URL will automatically qualify for the discount.
10. Availability (Coming Soon ) #
11. Stock Quantity Based Condition #
The Stock Quantity condition allows you to apply discounts based on the available stock of a product. This is useful for promoting products with higher stock levels and encouraging bulk purchases.
Scenario:
Suppose you want to offer a 20% discount on products that have more than 5 units in stock.
Once you set up a 20% discount, go to the Conditions section and follow these steps:
- Choose “Stock Quantity” as the filter.
- Set the method to “Greater Than”.
- Enter 5 as the value.
- Save it.
This setup ensures that the discount applies only to products with a stock quantity greater than 5.
Here, one of our “Coffee Maker” products has a stock quantity of 7.
So, a 20% discount was applied to it and the price was reduced to $28 from $35.
12. Stock Status Based Condition #
Apply discounts based on the availability of a product’s stock status using this condition filter. You can create discounts for products that are In Stock, Out of Stock, or On Backorder.
Such as:
Suppose you want to clear out inventory by offering a 20% discount on products that are ‘In Stock’ to encourage faster sales.
Now, select ‘All Products’ and provide a percentage discount of 20%.
Go to the Conditions section and select the “Stock Status” filter. From the “In List ” method choose “In Stock”.
The discount will only apply to products currently available in stock.
All the products shown above were marked as In Stock and automatically received a 20% discount based on their stock status.
In similar way, you can provide discounts only to out-of-stock products and the products that are on backorder.
13. Weight Based Condition #
Apply discounts based on the weight of a product using this condition filter. You can set discounts for products that fall within a specific weight range, are above or below a certain weight, or match an exact weight value.
For Instance:
Suppose you want to offer a fixed $15 discount on products weighing 5 kg or more.
Once you set up the discount and product rules, here’s what you need to do:
- Go to the Conditions section and select Weight.
- Choose the method as “Greater Than or Equal” and set the value to “5 KG”.
The discount will only apply to products weighing 5 kg or more.
Here, our product “Basics Neoprene Dumbbell Pair” weighs more than 5kg, so it got a $15 discount.
This is especially useful for categories like fitness equipment, packaged goods, or bulk items where weight plays a crucial role.
14. Weight Unit Based Condition #
By using this condition, you can apply discounts based on the weight unit used for your products, such as pounds (lb), kilograms (kg), Ounce(oz), or other predefined units.
It’s particularly useful for stores that sell weight-based items like gym equipment, groceries, or hardware supplies.
Here’s an Example:
Suppose you want to offer a 10% discount on products measured in ounces(oz).
Once you choose ‘All Products’ and set a discount of 10%, go to the Conditions section. Here:
- Choose “Weight Unit” filter
- The method should be ‘In List’
- Select “oz” from the available options.
- Save it.
This setup ensures the discount applies only to products with their weight defined in ounces(oz).
Here, if the “Stanley Quencher H2.0 Tumbler with Handle & Straw 30 oz” has its weight in oz and is priced at $35. So, customers will receive a $3.50 discount, reducing the price to $31.50.
This strategy is an excellent way to promote specific product categories or encourage bulk purchases.
15. Width Based Condition #
You can use this condition filter to provide discounts based on the width of your products. This filter is especially useful for stores that sell large items such as furniture, home appliances, or electronics.
For Instance:
Suppose you want to offer a $5 discount on products that are wider than 15 inches.
Choose ‘All Products’ and set a $5 fixed account. Then in the Conditions section:
- Choose “Width” as the filter.
- The method should be ‘Greater Than’.
- Set the value to 15 inches.
- Save it.
This setup ensures the discount applies only to products with a width greater than 15 inches.
You can see above that, our product “Koolatron Refrigerator Mini Fridge” is wider than 15 inches. It has a width of 17.25 inches. So, under the condition, it got $5 off.
16. Height Based Condition #
This condition allows you to apply discounts based on the height of your products. It is ideal for stores selling items like home decor, furniture, or small appliances.
Here’s an Example:
Let’s offer a 20% discount on products that are less than 30 inches in height.
After setting a discount of 20%, go to the Conditions section and follow these steps:
- Choose “Height” as the filter.
- The method should be ‘Less Than’.
- Set the value to 30.
- Save it.
This setup ensures the discount applies only to products with a height of less than 30 inches.
As one of our Sofa products has a height of less than 30 inches, it got a 20% discount and the total price came down to $136 from $170.
17. Length Based Condition #
You can offer discounts for products based on their length using this condition, perfect for larger items like tables, beds, or long furniture.
To give you an instance:
Let’s offer a $50 discount on products with a length between 30 to 50 inches.
Once you set up a fixed discount of $50, go to the Conditions section and follow these steps:
- Choose “Length” as the filter.
- The method should be ‘Between’.
- Set the values to 30 inches and 50 inches.
- Save it.
This setup ensures the discount applies only to products whose length is between 30 and 50 inches.
Now, if the “Panghuhu88 Folding Sofa Bed” has a length of 42.5 inches and is priced at $120, customers will receive a $50 discount, bringing the price down to $70.
18. Product Type Based Condition #
You can offer discounts based on the product type using this condition. So, the discount can be applied to Simple Products, Variable Products, Grouped Products, and External/Affiliate Products.
Example:
Let’s offer a 10% discount on the External/Affiliate Products.
Once you set up a 10% discount, go to the Conditions section and follow these steps:
- Choose “Product Type” as the filter.
- The method should be ‘In List’.
- Select “External/Affiliate Product” from the available options.
- Save it.
This setup ensures the discount applies only to External/Affiliate products.
As you can see, our Disco Pro Plugin product is set up as an “External/Affiliate Product” and is priced at $69. customers will receive a $6.90 discount, reducing the price to $62.10.
19. Visibility Based Discounts Conditions #
You can offer discounts based on the product’s visibility in the shop or search results using this condition. It’s ideal for stores that want to target products based on how they appear in the store or search listings.
WooCommerce offers visibility options like “Shop and Search Results“, “Shop Only“, “Search Results Only“, and “Hidden“.
Check out this Example:
Let’s offer a $25 discount on products that are visible in both the “Shop and Search Results”.
So, select all the products of your WooCommerce store and offer a fixed discount of $25. Once you are done with this, go to the Conditions section and follow these steps:
- Choose “Visibility” as the filter.
- The method should be ‘In List’.
- Select “Shop and Search Results” from the available options.
- Save it.
This setup ensures the discount applies only to products that are visible both in the shop and search results.
For example, if a “Watch” is priced at $85 and is set to be visible in the “Shop and Search Results”, customers will receive a $25 discount, reducing the price to $60.
20. Total Rating Based Condition #
This filter lets you offer discounts based on the total number of times a product has been rated. It’s perfect for encouraging purchases of newer or lesser-rated products.
For example,
Let’s offer a 50% discount on products with fewer than 5 ratings.
Once you set up a 50% discount, go to the Conditions section and follow these steps:
- Choose “Total Rating” as the filter.
- The method should be ‘Less Than’.
- Set the value to 5 (representing less than 5 ratings).
- Save it.
This setup ensures the discount applies only to products that have been rated fewer than 5 times.
So, if a “Men’s Premium Tee” has been rated just 1 time and is priced at $30, customers will receive a 50% discount, bringing the price down to $15.
21. Average Rating Based Condition #
You can offer discounts based on the average rating of a product. This condition is especially useful for promoting highly-rated products or encouraging sales for products with lower ratings.
To give you an instance:
Let’s offer a $5 discount on products with an average rating of 4 stars or above.
Start by choosing all products and offering a $5 fixed discount. Then go to the Conditions section and follow these steps:
- Choose “Average Rating” as the filter.
- The method should be ‘Greater Than or Equal’.
- Set the value to 4 (representing products rated 4 stars or more).
- Save it.
This setup ensures the discount applies only to products with an average rating of 4 stars or more.
If a “Black Slim Fit Classic Stretch Jeans” has an average rating of 4 stars and is priced at $40, customers will receive a $5 discount, reducing the price to $35.
22. Author Name (Coming soon) #
23. Author Email (Coming soon) #
24. Date Created Based Condition #
This condition allows you to offer discounts based on the creation date of products. You can use this condition filter for promoting newly added items or clearing out older stock.
Such as:
Let’s offer a 10% discount on products created on January 16th, 2025, or after that.
Once you set up a 10% discount, go to the Conditions section and follow these steps:
- Choose “Date Created” as the filter.
- The method should be ‘Greater Than or Equal’.
- Set the value to 16-01-2025 (or your desired date).
- Save it.
This setup ensures the discount applies only to products created on 16th January 2025 or after that.
Below, you can see that one of our products was created on January 16th, 2025.
Now, there is a 10% discount on the product.
25. Date Updated Based Condition #
If you want to apply discounts to products based on their last update date, whether they were updated recently or a while back then this is the condition filter you are looking for.
It’s particularly useful for clearing out older products or highlighting items that haven’t been updated in a while.
To give you an Instance:
Let’s offer a $30 discount on products updated on or before January 27, 2025.
Once you set up a $30 discount, go to the Conditions section and follow these steps:
- Choose “Date Updated” as the filter.
- The method should be ‘Less Than or Equal’.
- Set the value to 01-27-2025.
- Save it.
This setup ensures the discount applies only to products updated on or before the specified date. Our product “SwissGear 1900 Scansmart TSA 17-Inch Laptop Backpack, Black” was last updated back in December 2024. So it has a $30 discount on it.
26. Status Based Condition #
With this condition, you can apply discounts based on the status of your products, such as Publish, Draft, Pending Review, or Private.
Have a look at this scenario:
Let’s offer a 15% discount on all the published products.
Once you set up a 15% discount, go to the Conditions section and follow these steps:
- Choose “Status” as the filter.
- The method should be ‘In List’.
- Select Publish from the available options.
- Save it.
This setup ensures the discount applies only to products with the Publish status.
In the above picture, you will find out that all of our published products got a 15% discount.
27. Featured Status Based Condition #
This condition lets you apply discounts based on whether a product is marked as Featured. It’s perfect for promoting your top or highlighted products to boost their visibility and sales.
Have a look at this example:
Let’s offer a $10 discount on all products marked as Featured.
Once you set up a $10 discount, go to the Conditions section and follow these steps:
- Choose “Featured Status” as the filter.
- The method should be ‘Equal’.
- Select Yes to target featured products.
- Save it.
If you set up a discount using this condition, it ensures the discount applies only to products flagged as Featured in WooCommerce. We have two products featured in our WooCommerce store.
As they fall under the discount condition rules, they are getting a 10$ discount.