setup user role based discounts in woocommerce

How to Setup User-role Based Discounts in WooCommerce

A WooCommerce user role discount is when you want to provide a discount to a particular customer group in your store. Let’s say, you would like to offer a 20% discount for your Wholesale customers only. You can create a discount based on a user role with the WooCommerce Discount Rules plugin easily in under 5 minutes.

The user role based discounts have a very important part to play in your store. They are directly tied with the shopping experience your online store offers. That is, a wholesale customer would expect more benefits than regular users.

So, you need a tool that helps you provide different discounts for different user roles without any clutter and confusion. The default WooCommerce coupons can make it a little complicated, but WooCommerce Discount Rules are here to help.

In this tutorial, let’s walk through how to set up WooCommerce user role pricing, including user role discounts, in simple steps using the best discount plugin for WooCommerce.

Before getting started, make sure you have installed and activated the popular WooCommerce Discount plugin – Woo Discount Rules:

Pricing and Discounts By User Role in WooCommerce

The article helps you understand everything you need to know about user roles in WordPress, how you can set up prices by user role, how to create WooCommerce coupons by user role based discounts in WooCommerce, and more.

What is a user role in WordPress?

Simply put, a user role in WordPress is grouping the users based on their capability. WooCommerce uses the default WordPress Role system.

How WooCommerce use the roles in WordPress?

WooCommerce adds two user roles when it is installed: Customer and Shop Manager.

Customer: When a user makes a purchase or registers on the site, they are assigned the “Customer” role. The customer role has very limited capabilities like viewing their order history.

Shop Manager: This role has additional capabilities that allow users belonging to this role to manage WooCommerce products in the dashboard and view the reports.

As a store administrator, you have control over the creation and the capabilities of each role.

How to create a user role in WordPress

WordPress by default comes with the following roles :

Super Admin – somebody with access to the site network administration features and all other features. See the Create a Network article.

Administrator (slug: ‘administrator’) – somebody who has access to all the administration features within a single site.

Editor (slug: ‘editor’) – somebody who can publish and manage posts including the posts of other users.

Author (slug: ‘author’) – somebody who can publish and manage their own posts.

Contributor (slug: ‘contributor’) – somebody who can write and manage their own posts but cannot publish them.

Subscriber (slug: ‘subscriber’) – somebody who can only manage their profile.

You can create a new coupon by roles for WooCommerce using the awesome User Role Editor plugin. It is a free plugin you can download from the WordPress plugin repository.

Please check this guide for step by step tutorial for creating a user role in WordPress

Why set prices by user role in WooCommerce?

There are a number of use cases for offering a user role based discounts in WooCommerce. Some of the popular examples are given below:

Wholesale Customers

Your store might be selling products both to wholesale and retail customers. It is quite normal in the world of eCommerce to offer discounted prices to Wholesale customers.

A majority of the WooCommerce often provide a discount for wholesale customers.

Discount for Existing Customers

Another common example of role-based pricing is to provide existing customers with a discount. It’s an easy way to encourage customers to make return purchases.

If you are already using the WooCommerce Discount Rules plugin, it is quite easy to offer a WooCommerce user group discount for existing customers based on their user role. You just have to create a discount rule for the “Customer” role.

WooCommerce Role Based Discounts

Before you get started, please make sure you have installed and activated the WooCommerce Discount Rules PRO plugin.

This guide assumes that you have already installed and enabled the WooCommerce Discount Rules, a popular WooCommerce Dynamic Pricing and Discount plugin with over 30,000+ active installs.

Consider your intended offer is “Exclusive 30% off on all products – Only for Premium Subscribers”.

However, before starting with the details of the discount rule, let’s first have a look at two ways of offering the discount: Product level or Cart level.

Product Level or Cart Level?

The WooCommerce Discount Rules plugin manages two types of discounts – product level and cart level. You can apply role-based discounts on both the product level or cart level. Let us take two different discount rules:

Exclusive 40% off on all Electronic products – Only for Subscribed Users

Exclusive 30% off on purchase above $500 – Only for Subscribed Users

Though both of the above rules apply to a particular user role (Subscribers), they differ on the level as well. The first rule applies to the Electronics category of products regardless of the cart details. The second one applies to the cart subtotal regardless of the products purchased.

WooCommerce Discount Rules handles both cases.

Creating User Role Based Discounts on Product Level

Here is a step-by-step guide on how you can create the discount rule “Exclusive 20% off on all products – Only for Subscribers role” with Woo Discount Rules.

Login to your WordPress dashboard -> Navigate to WooCommerce -> Woo Discount Rules -> Add New Rule.

user role based discounts on product level

Once you have entered the rule page, enter the rule name and select the discount type as “Product Adjustment” from the drop-down as illustrated below,

product level discount

In the filter section,
Choose “All Products” as it is a store-wide discount.

In the discount section,
Choose the Discount Type as “Percentage discount” and enter the discount value as 20%.

In the rules section,
Condition type – User Role and select the required user-roles from the drop-down (Subscribers).

Save the rule.

Now, users under the “Subscribers” role will get a 20% discount automatically on all products in your store.

You can find our more examples in our User Role based Discount documentation

Creating User Role Based Discounts on Cart Level

Here is the guide to create a rule like “Exclusive 40% off on purchase above $500 – Only for Wholesalers”

Choose the discount type as “Cart Adjustment” as shown below,

cart level discount

In the filter section,
Choose “All Products” as it is a store-wide discount.

In the discount section,
Choose the Discount Type as “Percentage discount” and enter the discount value as 40%.

In the rules section,
Condition 1:
Condition type – User Role and select the required user-roles from the drop-down (Wholesalers).

Condition 2:
Condition type – Subtotal with its value as greater than or equal to $500.

Save the rule.

Now the Wholesalers will get a 40% discount when they spend over 500 or more in your store.


Individual pricing discounts in WooCommerce are quite useful to encourage repeat purchases and reward your existing customers. So go ahead and set up WooCommerce prices by user role or offer a user role based discount in your WooCommerce store.

So, whatever type of discount you want to provide for the particular user roles in your WooCommerce online store, Woo Discount Rules will make it easy and neat for you. That’s what makes WooCommerce Discount Rules plugin is a very simple and robust one. It can handle any kind of discounting use case you can think of. Be it bulk discounts, BOGO deals, or any advanced discount rules, WooDiscount Rules is game. Now, that you know how good it is, don’t you agree?



Introducing WPLoyalty – Points, Rewards & Referral plugin for WooCommerce with tons of reward options.   Get 10% as intro offer: Coupon Code: SAVE10