Sale!
Product Visibility by User Role for WooCommerce

Product Visibility by User Role for WooCommerce

Product Visibility by User Role for WooCommerce

Display WooCommerce products by customer's user role.

Clear
Author: Pablo Pacheco . SKU: N/A. Category: . Tags: , . Version: 1.1.7. Last updated: 3 weeks ago. Requires WordPress version: 4.4. Tested up to: 4.9.

Description

Product Visibility by User Role for WooCommerce Pro plugin lets you show/hide WooCommerce products depending on customer’s user role.

Plugin 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 product still will be accessible via direct link.
Default: yes
Make non-purchasable
This will make selected products non-purchasable (i.e. product can't be added to the cart).
Default: no
Modify query
This will hide selected products completely (including direct link).
Default: no
Redirect
This will redirect invisible products to a page different from 404
Default: None
Hide menu items
Hides menu items from empty product categories
Default: no

After that you can you can set included or excluded user roles for each product individually – go to product’s edit page and locate “Visibility by User” meta box.

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).

Free vs Pro

Free Version Pro Version
Hide product's catalog visibility yes yes
Make product non-purchasable yes yes
Hide product completely yes yes
Set each product's user roles yes yes
Set each user role's products (in bulk) no yes
Set each user role's product categories no yes
Set each user role's product tags no yes
Redirect a invisible product to a page different from 404 no yes
Hide menu items no yes

Prices & Licenses

Single siteUnlimited sites
1 year$19.99$49.99 $19.99
Lifetime$49.99 $27.99$99.99 $36.99

Reviews

There are no reviews yet.

Be the first to review “Product Visibility by User Role for WooCommerce”

15 thoughts on "Product Visibility by User Role for WooCommerce"

  1. Sang Hyun February 8, 2018 at 6:30 pm #

    Is there any way to redirect user to another link if they can’t access to product ?? Not to 404 NOT FOUND page.

    Reply

    • Pablo Pacheco April 3, 2018 at 12:36 am #

      Hello Sang,

      We just added a new option on admin called “Redirect”.
      It allows you to redirect to a page different from 404, in case a product is considered invisible.

      Instead of this admin option, you can use the filter ‘pvbur_invisible_product_redirect’ instead.
      If you have any questions, let me know.

      See you 😉

      Reply

  2. vytautassmociukas March 22, 2018 at 12:22 am #

    is it correct that plugin just hide products but not categories and menu if it associated with the product? any chance for update with this feature?

    Reply

    • Tom Anbinder March 22, 2018 at 6:50 pm #

      Hi Vytautas,

      Did you try enabling “Modify query” checkbox in plugin settings?

      Best regards,
      Tom

      Reply

      • vytautassmociukas March 22, 2018 at 11:39 pm #

        Yes did that.
        Maybe i described situation not in the right way 🙂
        i have role where i need to show just n products and i do that and its works
        but here i have problem that all empty ( where are all products hided) categories are shown as well

        Reply

        • vytautassmociukas March 22, 2018 at 11:39 pm #

          menu also

          Reply

        • Tom Anbinder March 23, 2018 at 11:13 pm #

          Hi Vytautas,

          Could you please let me know if those empty categories and menus are shown in your theme without our “Product Visibility by User Role” plugin. I mean – if our plugin is disabled at all, and you create an empty category – is it still shown or hidden?

          Best regards,
          Tom

          Reply

          • vytautassmociukas March 26, 2018 at 4:23 am #

            one again:) i have 7000 products and if want to show just 3 for particular role i need to use show function. and its working. The issue is then i am showing just 3 products all other categories becoming empty and my costumer can see all these empty categories and menu. in other words 🙂
            i have 7 categories with product on of them milk and if i am showing just milk for one client the other categories are empty but they still appear in categories list and menus.

        • Pablo Pacheco April 2, 2018 at 10:40 pm #

          Hi,

          Can you please send us your site URL?

          Reply

        • Pablo Pacheco April 4, 2018 at 12:27 am #

          Hello again,

          I’m happy to inform we just updated a new version (1.1.7) which allows you to hide empty categories.

          You just have to enable the option called “Hide menu items” on plugin’s settings.

          After that you have to save the menu.

          Please tell me if you liked the solution 😉
          See you

          Reply

  3. Patrick April 1, 2018 at 12:49 am #

    Hey.

    I’m using the “Members” plugin to create custom roles. Will the Pro version of this plugin recognize custom roles, or just the WordPress default roles?

    Reply

    • Pablo Pacheco April 1, 2018 at 10:00 pm #

      Hi,

      Yes. It will recognize the default and the custom roles too, including the ones made by the Members plugin

      Reply

  4. Damir April 18, 2018 at 4:49 am #

    Hi,

    Does the plugin work on variable products?
    Can we hide only some variation of same product?

    Also Im wondering how does bulk function work.
    In admin product list table?

    Thanks.

    Reply

    • Pablo Pacheco April 18, 2018 at 5:45 pm #

      Hi Damir,
      For now it won’t work on variable products, but we are working on that 😉

      The Bulk settings are located on plugin’s settings, next to General tab.
      It lets you setup just in one place all your products that are invisible/visible for a specific role

      Reply

Leave a Reply

Changelog

= 1.1.7 - 03/04/2018 =
* Add action 'pvbur_save_product' after a product is updated
* Add a new admin option to hide categories from wp nav menu if there is no products to show
* Add a filter 'pvbur_hide_empty_cats' to hide categories from wp nav menu if there is no products to show

= 1.1.6 - 02/04/2018 =
* Add new option on admin to redirect to a page different from 404 in case a product is invisible
* Add new filter 'pvbur_invisible_product_redirect' to redirect to a page different from 404 in case a product is invisible

= 1.1.5 - 26/03/2018 =
* Fix - Core - is_visible() - Bulk settings - Products - Returning false only.
* Dev - General - Admin Options - "Product quick edit" option added.
* Dev - General - Admin Options - "Products bulk edit" option added.

= 1.1.4 - 12/11/2017 =
* Dev - Core - Possible "wp_get_current_user() undefined" error fixed.

= 1.1.3 - 31/10/2017 =
* Dev - Admin Settings - Settings tab title updated.
* Dev - Admin Settings - General - Description updated.

= 1.1.2 - 30/10/2017 =
* Dev - Admin Settings - Bulk Settings - User roles subsections added.
* Dev - Admin Settings - Meta box - Title updated.

= 1.1.1 - 26/10/2017 =
* Dev - Admin Settings - Bulk Settings - "Save all changes" button added to each role's section.
* Dev - Admin Settings - Meta box - Title and descriptions updated.

= 1.1.0 - 25/10/2017 =
* Dev - "Bulk Settings" section added.
* Dev - Admin Settings - Meta box select - chosen_select class added.
* Dev - Admin Settings - Meta box on product edit moved to side with low priority.
* Dev - Code refactoring.
* Dev - Saving settings array as main class property.

= 1.0.0 - 30/08/2017 =
* Initial Release.

Installation

  • Buy the plugin 🙂
  • Download plugin's zip to your computer (you will receive an email with download link, or you can always download the plugin from your account).
  • Go to Admin Dashboard > Plugins > Add New > Upload Plugin and browse for downloaded zip file.
  • If plugin is successfully installed - you should see it added to the Plugins list.

Updates

To keep WPCodeFactory items up to date, please install WPCodeFactory Helper plugin and enter your site key.