What is the Condition/ Rules section ?
When creating discount offers, you can add conditions to limit the discount based on a number of parameters like subtotal, user roles, categories, products, purchase history, shipping methods, number of items / quantities in the cart and so on.
These conditions can help you make your discounts more targeted and persuasive. The conditions are checked before a discount is applied.
Creating conditional based discounts is now simple with the Discount Rules PRO plugin for WooCommerce.
This guide will list out all the available conditions, their purchase and how you can use them in your discount rules.
Note: The PRO version of Discount Rules plugin is required to use conditions other than the subtotal condition, which is available in the free version.
The screenshot below shows where to find the condition section in discount rules:
By clicking on the "Add condition" button, you can find a list of available conditions. We will now go through each of them in detail.
The conditions are grouped under different sections like cart, purchase history, items and so on.
Let’s have a detailed look into each condition.
Subtotal - Total amount of all items in the cart, without coupon discounts, taxes, or shipping charges. For example, if a user spends $100, they will receive a $10 discount.
Item quantity - Total number of items in the cart. For instance, if a user buys more than 5 items, they will receive a 10% discount.
Coupons - Activate a discount rule only when a customer manually adds a coupon code. For instance, customers can use the coupon code "SUMMER" to get a 5% discount.
Total weight - Discounts are given based on the total weight of all items in the cart. For example, if a user shops for 10 kg, they will receive a $5 discount.
Payment Method - Discounts will only apply during checkout after the customer has chosen a payment method. For instance, customers can receive a $10 discount when they choose PayPal as their payment method.
Line Item Count - Add a condition to check the number of line items in the cart to apply a discount. For instance, customers can receive a 20% discount when they buy 5 different products. Click here for examples based on line item count.
Attributes - You can add default WooCommerce attributes as a condition to apply a discount. For example, get 10% off when buying products with red attributes.
Categories - You can add a category condition to apply a discount based on the product category. For instance, get 30% off on all products in the cart while the cart has products from the Bag category.
Product combination - This discount condition is useful for applying a discount when a specific combination of products are in the cart, such as Product A + B + C.
SKU - You add additional conditions as SKU. This is useful when you want to apply a discount on all products in a cart when the cart has a specific SKU “ABC123” (Stock Keeping Unit).
Product Tags - You can add additional conditions as Tag and will be useful when you want to apply discount on all products in cart when cart has a specific tag like “Bestseller” or “Women”
Products - Select mandatory products to be/ not to be in cart to apply a discount. For example: Cart should have a product “Cap” to apply discount on remaining products in cart.
Category Combination - You can apply a discount based on a combination of product categories. This is useful when you want to offer a discount only if certain products from specific categories are in the cart.
Date & time:
Date - This discount condition enables you to apply a discount on a specific date. For instance, you can offer a discount on Christmas Day.
Date and time - This discount condition enables you to apply a discount on a specific date and time. For instance, you can offer a 25% discount on all products from March 30 to April 2.
Days - This discount condition enables you to apply a discount on specific days of the week. For example, you can offer a 10% discount on all purchases made on Fridays.
Time - This discount condition enables you to apply a discount only during specific times of the day. For instance, you can offer a time-limited discount of 25% off for orders placed before 12:00 PM.
The purchase history of the user can be checked before providing discounts based on the following conditions:
First Order - You can choose to provide discounts only for the customer's first order. For example, new customers can get 10% off their first order by using the code “NEW10”.
Last Order - This condition will check the customer's last order status if it was placed within a selected period of time. For instance, customers can get a 15% discount on their next purchase if they make the purchase within 7 days of their last order.
Last order amount - This condition will check the customer's last order amount. For example, customers can get a 30% discount if their last order amount was greater than $200.
Number of orders made - This condition represents the count of orders placed within a selected time period. For example, customers can get a 20% discount by completing at least 3 orders in a month.
Number of orders made with the following products - This condition represents the count of orders placed using a specific product within a selected time period. For example, customers can get a $10 discount by placing at least 3 orders (single or multiple quantities in different orders) with hoodies within a week.
Number of quantities made with following products - This condition represents the quantities of products previously purchased within a selected time period. For example, customers can get a free hoodie by ordering at least 5 quantities of hoodies (in a single or multiple orders) within 2 months.
Total spent - This condition will check the total amount spent by the customer on previous orders within a selected time period. For example, customers can get a $50 discount by spending over $500 during the last 6 months.
Shipping discounts will be applied during checkout after the customer has entered their shipping address.
The shipping address-based condition includes the following:
Shipping city and Zip Codes
For example: Free shipping to any location in California state.
City - refers to the city used by customers in billing during order placement. This condition will get verified when the customer enters their address at checkout.
For example: Save 5% on your order if your billing address is in Los Angeles.
Email domain - This condition will check for the TLD and domain names to which the discount should apply. For example:10% discount for customers whose email contains .edu or .org
User - List of users to which discounts apply. Example: Offer a 50% discount on a category to a specific user in your store.
Is logged in - Use "Is logged in" to apply discounts when users are logged in. Example: 5% off for all logged-in users
User role - Applies discounts to WordPress User roles. For instance, wholesale user roles can enjoy a 10% discount on all orders.
Some of the Conditions/ Rules discussed above require PRO.
You may also want to check out these helpful guides:
Refer this video to know more about bulk discounts :
Still unclear ?
If you need any assistance, please create a support request at our ticket system. We are always happy to assist you :)