Product Visibility by User Role for WooCommerce Pro plugin lets you show/hide WooCommerce products depending on customer’s user role.
Plugin settings are located in “WooCommerce > Settings > Product Visibility”. Also to set user roles for each product, check “Product visibility” meta box on each product’s edit page.
General Options
Start by visiting “General” options section in “WooCommerce > Settings > Product Visibility by User Role > General”. Here you can choose how products should be hidden:
- Hide catalog visibility
- This will hide selected products in shop and search results. However, the product will still be accessible via direct link.
- Default:
yes
- Default:
- Make non-purchasable
- This will make selected products non-purchasable (i.e. product can’t be added to the cart).
- Default:
no
- Default:
- Modify query
- This will hide selected products completely (including direct link).
- Default:
no
- Default:
- Hide menu items
- Hides nav menu items (i.e. hidden products, product categories and tags). Only products, product categories/tags marked in bulk settings will be hidden. This options uses the
wp_get_nav_menu_items
filter.- Default:
no
- Default:
- Hide products terms
- Hides products categories and tags from being displayed on front-end. Only categories/tags marked in bulk settings will be hidden. This options works filtering terms from
get_terms()
function.- Default:
no
- Default:
- Redirect
- This option is useful only if Modify query is enabled. Redirects to a page different from 404, in case a product is considered invisible.
- Default: None
- Redirect: Redirect URL per product
- This will add new “Product visibility: Redirect URL” meta box to each product’s edit page.
- Default:
no
- Default:
- Replace description
- This will replace the content in the “Description” tab for the selected products.
- Default:
no
- Default:
- Replace description: Content to replace with
- Default: None
-
- For example:
<strong><a target="_blank" href="/wp-login.php" rel="noopener">Log in</a> to see the product description.</strong>
- For example:
Per Product Options
After settings general option you can you can set included or excluded user roles for each product individually – go to product’s edit page and locate “Product visibility” meta box:
Admin Options
- User roles to display in settings
- Leave blank to show all available user roles.
- Default: None
- Admin products list column
- This will add “User Roles” column to the admin products list.
- Default:
no
- Default:
- Product quick edit
- This will add “User Roles” options to the product quick edit screen.
- Default:
no
- Default:
- Products bulk edit
- This will add “User Roles” options to the products bulk edit screen.
- Default:
no
- Default:
Bulk Options
Pro version also allows you to set user roles visibility options in bulk (for multiple products at once, product categories or product tags). In “WooCommerce > Settings > Product Visibility by User Role > Bulk Settings” you can set which products, product categories or tags are visible or invisible to certain role. If you fill in “Visible” option, then users with selected role will be able to see only chosen products. If you fill in “Invisible” option, then chosen products will be hidden for users with that role. If you leave any of the options empty – option will be ignored (i.e. all products will be visible).
Frequently Asked Questions
Q. I have a pagination issue: the number of products on each page turns out random depending on which products are hidden. What should I do?
A. You need to enable “Modify query” checkbox in plugin “General” settings section (in “WooCommerce > Settings > Product Visibility”).
Free vs Pro
Free Version | Pro Version | |
---|---|---|
Hide product’s catalog visibility | ||
Make product non-purchasable | ||
Hide product completely (modify query) | ||
Set each product’s user roles | ||
Set each user role’s products (in bulk) | ||
Set each user role’s product categories (in bulk) | ||
Set each user role’s product tags (in bulk) | ||
Redirect a invisible product to a page different from 404 | ||
Hide menu items | ||
Hide products terms | ||
Replace product’s description |
Peter –
Hi! Thanks for this incrdible plugin.. works fine and excellent!
I have a question… this plugin is compatible with WP All Import plugin? Do you an idea how can i put de cell on excel to import the values for visible and invisible user for each product? this fields accept multiple values .. so, i can’t find the way to import from excel to woocommerce
Evan Gwin (verified owner) –
Let me start out to say, Pablo is hands down awesome! His customer service skills and expertise with woocommerce are incredible. I can to him with a problem that I was seeing using this plugin, and he helped fix the problem immediately. I cannot say enough good things about him. Very sincere, and will definitely make sure you are happy with the plugin you purchase.
Pablo Pacheco –
Thanks 😉
afif –
very simple and easy to use… good plugin and recommended
Pablo Pacheco –
Thanks!
Domenico Saggese (verified owner) –
Excellent! It works in complicated situations, with many roles and many visibility rules, I have gourps of users who can see only some category of products and groups who can all products EXCEPT some category, and even users with more roles, one to be managed by this plugin and one to be seen by another plugin
Support is quick, kind and effective
Pablo Pacheco –
Thanks!
charlescoates (verified owner) –
Support for this plugin was excellent from Pablo, Thanks for your support Pablo.
Pablo Pacheco –
Anytime 🙂
Thanks!
dvelopit (verified owner) –
Great plugin works well. really fast support – Author even modified plugin for a new feature request. Highly recommended.
Pablo Pacheco –
Thanks!