Creating Rules for Switching User Roles
Create rules with the WooCommerce Automatic User Roles Switcher plugin. These rules will help in automatically changing user roles based on specific conditions. Let’s break down the steps in a clear and concise manner:
Navigate to the WP Admin Panel.
Go to “Automatic Role Changer” and select “All Rules.”
Click on the “Add New Rule” button.
Rule Information:
Add Title: Provide a descriptive title for the rule.
Role Settings:
Gain Role: Choose between:
- Switch to Single User Role
- Assign Multiple User Roles
Trigger Conditions:
When Will: Select the condition triggering the role change:
- User Purchased a Specific Product
- Choose Products: Define specific triggering product(s).
- User Purchased Numbers of Products from Entire Catalog
- Number of Products: Specify the required quantity.
- Order Subtotal Falls Within Price Range
- Select Price Range: Set minimum and maximum subtotal.
- Customer’s Total Spend Falls Within Price Range
- Select Price Range: Set minimum and maximum total spend.
- User Purchased Products from Specific Categories or Tags
- Select Taxonomy: Choose a category or tag.
- Category/Tags: Specify triggering categories or tags.
- Switch User Role by Email Domain URL
- Domain URL: Define the triggering email domain.
Set Date Range: Define the start and end date for the rule to be active.
Duration for Roles: Set the duration for user roles in days.
Save Rule:
Click “Publish” to save the rule settings.
These steps help you efficiently set up rules for switching user roles based on various conditions using the WooCommerce Automatic User Roles Switcher plugin.