There will be situations when you want apply the dynamic pricing discounts after the customer enters a valid coupon code.
WooCommerce Discount Rules normally apply the matching discount rules automatically. Most of the store owners would prefer to offer the dynamic discount rules this way.
But there will be situations when you wanted to provide a specific coupon to the customers and tie one or more rules to the coupon
Common Scenarios are:
- Use ONE coupon code to apply different discounts
- One coupon code gives 10% discount on Category A, 20% discount on Category B and 30% on Category C
- One coupon applies 5% on Product A, 10% on Product B
- One coupon gives 20% for Wholesale users, 5% for retail users (user role based)
- One coupon gives 10% for orders over $100 and 20% for orders over $200
What you will need to do this?
- Woo Discount Rules PRO - You can purchase it from this page
- WooCommerce Coupons - The default feature... You need this to create a dummy coupon code.
Let's get started
Using Price Based Discount Rules - Activating one or multiple rules with a coupon code
- Create a coupon code
Let's first create a coupon code with a 0 discount. Since the plugin will dynamically apply the discount amount, the coupon code should be created a with a 0 discount. Otherwise, customer would end up getting more discount!
Go to WooCommerce -> Coupons -> Create a coupon
See the below screenshot
Step 1: Creating a coupon
IMPORTANT: Make sure the
- "Discount type" field is set to: "Percentage discount"
- Coupon amount is set to "0"
The rule will not work if you set a wrong discount type
2. Create a discount rule
We will be using the following example scenario to understand how this works:
10% discount on products in Shirts category
20% discount on products in Shoes category
Let's create the rule.
Now, go to the WooCommerce -> Woo Discount Rules -> Price rules tab.
Step 1: Create a rule for Category A (shirts)
Click "Add New" to start creating the discount rule.
Choose the "Quantity based by product/category and BOGO Deals"
Note: Do Not Choose 'Dependant product based rule', hence coupons cannot be used in Dependant product based rules.
There are a few things to note.
- You have the option to apply the discount to All Products, Specific Categories, Specific Attributes or Selected Products.
- For this scenario, we are using for Specific Categories. You can also adopt this example for selected attributes and products as well
- Choose the "Specific Categories" and select the category(ies) you wanted.
- Set the coupon field to: Apply if any one coupon is applied
This is fairly simply.
Click "Add Range" and set it to apply from 1 quantity itself. So that it applies for any quantity.
NOTE: You can set a minimum required quantity to a higher number depending on your requirement. You can even add more ranges if you like
Now that we created the rule for "Category A"
Repeat the same steps by "Creating another rule for Category B"
Step 2: Create a rule for Category B (shoes)
Start by creating a New Rule under the Price Based discount Rule tab.
General Tab - (for Category B)
Conditions are almost similar. What changes here is the category.
The discount percentage is now 20% for the shoes
Here is a screenshot showing both discounts activated with "two different discounts" using the "one coupon code"
The following are some more scenarios that you can use this feature
Scenario: Coupon activated rule for All Products in Store - Price Based Rule
When the customer enters the coupon code "SUMMER", he would get a 10% discount on all products he purchases.
Here is a screenshot showing the cart page
Scenario: Cart based discount rule - Activated with a coupon
Well, the above example is based on the product price based rule. Now, let us see how to do this with a cart based rule.
Sometimes, you wanted to provide a discount like: "Buy more than 4 quantities from Apparel category and apply a coupon "SUMMER" and get 15 % discount."
Step 1: Create a coupon code with 0 value
Go to WooCommerce -> Coupons and create a coupon code with the name "SUMMER"
Step 2: Create a cart based discount rule in Woo Discount Rules plugin
Go to WooCommerce -> Woo Discount Rules -> Cart based rule tab
Create a discount rule like in the example below
NOTE: You can add other conditions as well. Like Subtotal at least. The rule will apply when the conditions you have set meets.
This would apply a 15% discount when customer purchases at least 4 quantities from the Apparel category and then applies a coupon code "SUMMER"
Here is how it looks at the storefront -> cart
Important Note 1:
When you are creating Product discount, with a Coupon code with our Discount plugin check for this settings is set to No.
Woo Discount Rules -> Settings -> General -> Disable the rules while have coupon(Third party) in cart --> No.
Since we create a dummy coupon to activate the rules, the coupon would show up with a zero value (0.00).
You can hide the zero value in the plugin settings -> general
Set the switch "Hide $0.00 value of coupon codes in totals column" to YES.
Looking to have a discount rule like this in your WooCommerce online store ? Buy the WooCommerce Discount Rules PRO plugin now and start offering dynamic discount rules in your online store
Still unclear ?
Please submit a support request. We are always happy to assist you :)