Managing Product Visibility by User Role
To manage product visibility by user role using WooCommerce B2B, you can follow these steps:
Log in to your WordPress admin panel.
Navigate to B2B > Settings > Products Visibility > Visibility by User Roles. Under the “Visibility by User Roles” section, you can configure settings for the desired user roles. Under each user role, you will see the following options:
Enable for this Role: Checkmark to enable products to this specific user
Show/Hide: Select whether you want to show or hide products from the user
Select Products: Select products on which you want to apply this functionality
Select Categories: Select categories on which you want to apply this functionality
Redirection Mode: Choose a redirection mode for restricted items from the two options:
- Custom URL
- Custom Message
Custom URL: Add a custom URL to redirect when the user tries to access the restricted catalog
Custom Message: Add a custom error message to display when the user tries to access the restricted catalog
Click on the “Save changes” button to apply the settings.