View Product Page

Overview

YITH Automatic Role Changer for WooCommerce helps you to automate the management of user roles within your e-commerce. You will be able to create custom rules to automatically change a customer’s role based on certain conditions, such as purchasing a specific product, reaching a minimum spend, or exceeding a threshold of orders placed. 

Automatic Role Changer rule

You can use this plugin to manage resellers, partners, B2B sales, structure pre-sales strategies, access confidential content, and much more. 

How to configure rules for user roles

In this post, we’ll explore how to create a rule to assign a new role automatically when meeting specific conditions. In our example, we want to reward users with the Partner role that provides exclusive benefits for making big purchases.

Let’s begin:

Step 1 — Add rule

From the Rules tab in the plugin settings, click on the “Add rule” button to start configuring our rule (1)

Add rule

And add a name to identify the rule (2)

Add rule name

Step 2  User role assignment

Next, choose the role assignment type. In this case, we want to assign a new role, so we select ‘the user will gain the role’ and then choose the role to be assigned from the dropdown (3).

Set user role assignment

Step 3 — Rule conditions

Now, let’s define the conditions for role assignment. The rule should apply when the order total falls within a specific price range. Set the minimum amount to 5000, and leave the “To” field empty to allow for unlimited order totals. (4)

Set rule conditions

Step 4 – Schedule rule

Additionally, we need the rule to take effect from a specific date, so we set a start date accordingly and leave the end date blank to keep the rule active indefinitely (5).

Schedule rule

Step 5  Enable role expiration

Since we want this role to expire after a specific number of days, we have to enable the role expiration option, selecting the role to be switched back in 30 days (6). In this way, users will have to keep purchasing orders within the minimum price range to maintain the role and it’s benefits

Enable role expiration

Step 6 – Exclude users

Lastly, to prevent users with the “Reseller” role from benefiting from this rule, we enable the exclude users option (7).

Exclude users

Don’t forget to click ‘Save’ and we will have our new role-switching rule created!

Apply rules to existing orders

With the option “Apply rules”, you can search already existing orders (with no rules applied), and apply the current rules with a bulk action (8)

Apply role rules

From the modal window, you can choose whether to apply the rules to all orders or filter by creation, completion or payment date (9)

Apply rules to orders

Please note: This procedure cannot be undone, use it with caution.

Identify orders by role

In the “Orders” page of your WooCommerce store, each order with a role assigned will have a custom icon (10)

Rule applied on order icon

The order page itself will display a note including the obtained role (11)

Assigned role message - admin view

Customer view

The customer will be able to see the role gained with the order, in their My Account page (12)

Assigned role message - customer view

The note will be visible inside the order after it gets the status Completed.

Email notifications

Two emails are added to the default WooCommerce ones (13):

Email notifications

These two emails will inform customers and admin the moment a role is assigned after a transaction.

User notification

New role email notification - User

Admin notification

New role email notification - Admin

You have the option to set more than one email address for the admin emails (14).

Email recipient

YITH WooCommerce Email Templates

With YITH WooCommerce Email Templates you can manage and customize the templates of emails sent from your store for a more professional look.

Thanks to this integration, you can customize the emails sent by the plugin. After installing and activating both plugins, you can stylize the following emails:

Integration with YITH Email Templates

To read more information about YITH Email Templates, check the full documentation here.

YITH Role Based Prices

YITH Role Based Prices allows you to show different prices based on the role your users have, and offer dedicated discounts or increase the product prices.
Choose all the prices you want to show: Regular price, Sale price, and Role-based price.

The integration with YITH Automatic Role Changer allows you to forget about changing roles manually and automate your marketing strategies: your users will automatically see the updated price if they buy a given product, make a total spend, etc.

To start using both plugins together, all you have to do is to activate both of them from the Plugins page in your WordPress dashboard.

Then, start configuring automatic change rules as explained in detail on this page.

Please note: to make the role-based price show correctly, make sure that your users have no more than one role assigned. If they happen to have more than one user role at the same time, no role-based prices will be shown.

Example

Configure a Price rule with YITH Role Based Prices plugin.

  1. 10% off for the role New customer
  2. 20% off for the role Returning customer
  3. 50% off for the role Loyal customer
Automatic role changer example - Price rule

Then, create the switch rules from YITH Automatic Role Changer settings panel:

  1. Switch from New customer to Returning customer if the customer’s total spend exceeds £500.
  2. Switch from Returning customer to Loyal customer if the customer’s total spend exceeds €1,000.
Role based prices example

If you want to read more about how to configure YITH Role Based Prices, please, refer to the plugin official documentation.

YITH WooCommerce Subscription

YITH WooCommerce Subscription allows generating recurring payments for your products. Let your customers join a subscription plan with a payment cycle of your choice and many other options.

If you combine this plugin with YITH WooCommerce Subscription, the customer will automatically get the role you have set when the subscription changes to status ‘active’ or ‘trial’. The role will be removed automatically when the subscription gets the status ‘paused’, ‘pending’, ‘overdue’, ‘cancelled’, ‘expired’ or ‘suspended’.

Subscription example

You will only have to activate both plugins in order to make them work together. For more information on YITH Subscription, check the full documentation here.