Create User Role Based Discounts in WooCommerce (Automatic Coupons)
Learn how to create powerful user role based discounts in WooCommerce using automatic coupons. This complete guide covers storewide role based discounts and targeted discounts on specific products, categories, or variations. Reward your best customers, wholesalers, or partners with exclusive automated promotions.
📋 Table of Contents
- Before You Begin: Enable WooCommerce Coupons
- Option 1: Storewide User Role Based Discount
- Option 2: User Role Based Discount on Selected Items
- Quick Comparison Table
- Next Steps
🚀 Before You Begin: Enable WooCommerce Coupons
The Discount Rules and Dynamic Pricing for WooCommerce plugin works with WooCommerce's built-in coupon system. Please ensure it is enabled first:
- Go to your WordPress Admin Dashboard
- Navigate to WooCommerce > Settings
- Click on the General tab
- Check the box for Enable coupons
- Save your changes
Now you're ready to create automatic coupon rules under the Woo Pricing & Discounts > Discounts tab. This powerful plugin (available in a free version) offers advanced cart discount rules that help you create discounts based on user roles, specific products, categories, and more.
Option 1: Storewide User Role Based Discount
Best for: Rewarding specific user roles (wholesalers, VIP customers, partners) with exclusive discounts across your entire store. Perfect for B2B businesses, loyalty programs, and partner networks.
Scenario: Give a 30% off storewide discount to all users with the Wholesale user role. The discount applies automatically to the entire cart when a wholesale customer is logged in.
Step 1: Access Discounts and Choose a Template
- In your WordPress admin, go to the Woo Pricing & Discounts menu
- Open the Discounts tab
- Click on the Add from Template button to quickly start a new rule

- In the "Choose your desired campaign" modal, search for templates
- Under Automatic Coupons, find and select "Role based Discount: 30% Off for Wholesalers"
- Click "Add Campaign"

Step 2: Configure the Discount

- Name: "Wholesale" (customizable)
- Private Note: Add internal notes for your reference
- Status: Ensure Enable is checked
- Manual Coupon: Leave unchecked for automatic application (customers get the discount without entering a code)
- Apply Mode: Choose how this rule interacts with other discounts
- Apply with other applicable rules (Non-Exclusive): Works alongside other discounts
- Apply this rule and disregard other rules - Exclusive: Disregards all other applicable rules
- Apply if other rules are not applicable: Acts as a fallback
- Discount Type: Select the discount type that best fits your role based promotion strategy:
- Percentage discount - Applies a percentage off the entire cart. Best for percentage-based wholesale pricing. Example: 30% off entire cart for wholesalers.
- Price discount - Applies a fixed dollar amount off the entire cart. Best for fixed savings. Example: $20 off entire cart for VIP customers.
- Discount Amount: Enter the discount amount. e.g:
30 - Usage Limit: Leave blank for unlimited uses
Step 3: Schedule the Coupon (Optional)
By default, the campaign is unscheduled and runs immediately:
For scheduled promotions, under the "Date Time" section to configure:
- Date Range - Run a promotion over a period (e.g.,
2026-07-20to2026-07-31for a summer sale) - Date Time Range - Precise start and end date/time for flash sales
- Specific Date - Single date activation (e.g.,
2026-11-27for Black Friday) - Days - Recurring weekly promotions (e.g., Saturday & Sunday)
- Time - Daily time ranges (e.g., "happy hour" between 14:00-16:00)

Use "+ And New Rule" to combine conditions (e.g., weekends AND specific time) or "+ OR New Group" for alternative schedules.
For a deep dive into timezone setup, recurring schedules, and multi-tier scheduling logic, read our comprehensive Scheduling & Date-Time Guide.
Step 4: Set User Role Conditions
Under the Conditions section, you define which user roles qualify for the discount:
- Select the "Roles" condition to open the role selector
- Search for and select your desired user roles
- You can add multiple user roles into the search field

Example: In our tutorial, we'll select the Wholesale user role.
Common user roles for discounts:
- Wholesale - For bulk buyers and B2B customers
- VIP Customer - For loyal, high-value customers
- Partner - For affiliate partners and resellers
- Subscriber - For newsletter subscribers
- Retailer - For retail partners
For full details on all 14 condition groups, AND/OR logic, and available comparison operators, check out our Complete Rule Conditions Guide.
Step 5: Save and Test
Click Save and test with different user roles logged in.
Result Example
Wholesale user logged in with cart items:
- Shirt - Cream: $25.00 × 2
- Jacket: $25.00 × 1
- Shirt - Green: $25.00 × 1
Subtotal: $100.00
Discount Calculation: 30% × $100 = $30.00 discount
Result: The "Wholesale" coupon applies automatically to the entire cart when a wholesale user is logged in, saving the customer $30.00.

Option 2: User Role Based Discount on Selected Items
Best for: Offering exclusive discounts to specific user roles on selected products, categories, or variations. Perfect for targeted B2B pricing, wholesale pricing on specific product lines, or partner promotions.
Scenario: Give a 30% off discount on selected categories (Shirts) to users with the Wholesale user role. The discount applies only to the selected items, not the entire cart.
Step 1: Access Discounts and Choose a Template
- In your WordPress admin, go to the Woo Pricing & Discounts menu
- Open the Discounts tab
- Click on the Add from Template button
- Under Automatic Coupons, find and select "Role based Discount (Product): 30% Off for Wholesalers"
- Click "Add Campaign"

Step 2: Configure the Discount

- Name: "Wholesale" (customizable)
- Private Note: Add internal notes for your reference
- Status: Ensure Enable is checked
- Manual Coupon: Leave unchecked for automatic application
- Apply Mode: Choose how this rule interacts with other discounts
- Apply with other applicable rules (Non-Exclusive): Works alongside other discounts
- Apply this rule and disregard other rules - Exclusive: Disregards all other applicable rules
- Apply if other rules are not applicable: Acts as a fallback
- Discount Type: Select the discount type that best fits your role based promotion strategy:
- Percentage discount per item - Applies a percentage off each eligible item. Best for percentage-based wholesale pricing on selected items. Example: 30% off each selected product for wholesalers.
- Price discount per item - Applies a fixed dollar amount off each eligible item. Best for fixed savings that multiply with quantity purchased. Example: $5 off each selected product for partners.
- Fixed price discount - Applies a maximum discount cap for selected items. Best for controlling your maximum discount exposure. Example: $200 max off selected items for VIP customers.
- Discount Amount: Enter the discount amount. e.g:
30 - Usage Limit: Leave blank for unlimited uses
Step 3: Select Products, Categories, or Variations
Under the Items section, you define which products, categories, or variations receive the role based discount:
For Products:
- Select the "Products in list" condition
- Search for and select your desired products
- You can add multiple products into the search field

For Variations:
- Select the "Product variations in list" condition
- Search for and select your desired product variations
- You can add multiple variations into the search field

For Categories:
- Select the "Categories in list" condition
- Search for and select your desired categories
- You can add multiple categories into the search field

Combination of items: You can add combination of items like Products, Product Variations & Categories under items by using multiple conditions via the "+ OR New Group" button.

Example: In our tutorial, we'll select the Shirts and Accessories categories.
For detailed information on filtering products by categories, variations, attributes, stock status, or dynamic segments, check out our Product Selection Guide.
Step 4: Exclude Products (Optional)
The Excluded Products section allows you to exclude specific products from the role based discount:
- Under the Excluded Products section, select the "Products in list"
- Search for and select the products you want to exclude from the discount
- Add multiple excluded products to the search field
- Use "+ OR New Group" to create alternative exclusion conditions
Step 5: Schedule the Coupon (Optional)
By default, the campaign is unscheduled and runs immediately. For scheduled promotions, follow the scheduling steps described in Option 1.
Step 6: Set User Role Conditions
Under the Conditions section, you define which user roles qualify for the discount:
- Select the "Roles" condition to open the role selector
- Search for and select your desired user roles
- You can add multiple user roles into the search field

Example: In our tutorial, we'll select the Wholesale user role.
Common user roles for discounts:
- Wholesale - For bulk buyers and B2B customers
- VIP Customer - For loyal, high-value customers
- Partner - For affiliate partners and resellers
- Subscriber - For newsletter subscribers
- Retailer - For retail partners
Example: In our tutorial, we'll select the Wholesale user role.
For full details on all 14 condition groups, AND/OR logic, and available comparison operators, check out our Complete Rule Conditions Guide.
Step 7: Save and Test
Click Save and test with different user roles and product combinations.

Result Example
Wholesale user logged in with cart items:
- Shirt - Cream: $25.00 × 2 (In Shirts category - gets discount)
- Shirt - Green: $25.00 × 1 (In Shirts category - gets discount)
- Jacket: $25.00 × 1 (Not in Shirts category - no discount)
Subtotal of selected category items: $75.00
Discount Calculation: 30% × $75 = $22.50 discount
Result: The "Wholesale" coupon applies automatically to the selected category items only when a wholesale user is logged in, saving the customer $22.50. The Jacket (not in the Shirts category) receives no discount.

Quick Comparison Table
| Feature | Storewide Role Based | Targeted Role Based |
|---|---|---|
| Template | "Role based Discount: 30% Off for Wholesalers" | "Role based Discount (Product): 30% Off for Wholesalers" |
| Discount Type | Percentage discount or Price discount | Percentage discount per item, Price discount per item, or Fixed price discount |
| Eligible Items | All products in the cart | Selected products, categories, or variations |
| Best For | Storewide wholesale pricing, VIP loyalty programs | Targeted B2B pricing, specific product line discounts |
| Example Rate | 30% off entire cart for wholesalers | 30% off selected categories for wholesalers |
| Cart (Mixed items) | 30% × $100 = $30.00 | 30% × $75 = $22.50 (selected items only) |
| Discount Applied To | Entire cart subtotal | Subtotal of selected items only |
🎉 Success!
You've learned how to create two types of user role based discounts using automatic coupons in WooCommerce. Each discount type serves different promotional goals:
- Storewide Role Based Discount - Best for rewarding specific user roles with exclusive discounts across your entire store
- Targeted Role Based Discount - Best for offering exclusive discounts on specific products, categories, or variations to specific user roles
Both discount types apply automatically with no coupon code required based on the user's role, creating a personalized shopping experience that can significantly boost customer loyalty and wholesale revenue.
Experience all discount rules and pricing strategies in action on our Live Demo Website.
Upgrade to Discount Rules and Dynamic Pricing for WooCommerce PRO to unlock advanced conditions, user role pricing, recurring schedules, tiered variations, and priority support.
📚 Next Steps
Now that you've mastered user role cart discounts, explore other role & customer pricing options:
- Role-Based Pricing Rules (Catalog Level) — Show role-discounted prices directly on shop and product pages.
- User Signup Discounts — Automatically discount orders for new customers during registration.
- Minimum Spend Discounts — Combine role discounts with minimum spend requirements.
- Payment Method Discounts — Combine role requirements with payment gateway rules.
- Manual Coupons — Distribute exclusive coupon codes restricted to specific roles.
🔍 SEO Keywords
Primary Keywords: user role based discounts WooCommerce, automatic coupons WooCommerce, wholesale discounts WooCommerce, role based pricing WooCommerce, WooCommerce discount rules, dynamic pricing WooCommerce, B2B WooCommerce discounts
Secondary Keywords: storewide role based discount, targeted role based discount, wholesale user role discount, VIP customer discounts, partner discounts WooCommerce, WooCommerce user roles, B2B pricing WooCommerce, loyalty program discounts, exclusive customer discounts, Discount Rules and Dynamic Pricing plugin