Okay
  Public Ticket #2602303
Product Visibility
Closed

Comments

  • Ivan started the conversation

    By following your article I have correctly set the functions concerning the visibility of articles for users. In a nutshell I need to show articles in all categories and for all users. This setting works correctly. Enable Hidden Has Priority is activated.

    I also have some articles that can only be viewed by certain users. Within the article in question I have therefore activated the "Manual setting" function and I have given authorization for viewing to a single user. In principle this works, but only for the category page. In fact, browsing the categories, the article in question is not viewed by everyone, but only after the authorized user has logged in.
    My problem is that despite this, the article which should be hidden, appears for all other users by displaying the list of products shown by the widget, where the latest published products are shown.
    I would like to understand, then, does it only work for categories? If a product is intended to be viewed via a widget, is it not hidden in that section? How can I fix this bug? Is there any particular configuration that I need to activate?

    In fact, it makes no sense to hide products, only from categories, if they can then be seen via widgets. Furthermore, through the product preview available on the widget, I was also able to order it without being authorized!

    Thanks for a kind reply.

  •  1,903
    WebWizards replied

    Hi Ivan,

    Thank you for purchasing our plugin,


    Every widget can be different, it can use a different mechanism to get products. So our function works with default WooCommerce functions and it will work with some widgets, but not work with others. 

    Our plugin uses a filter. If the widget for example takes products directly from the database without filtering, there is nothing the plugin can do, the plugin cannot change the database.


    I have 2 suggestions:

    1) You can create a dynamic rule "Hidden Price" for the invisible items. That makes it so that price is hidden and the items cannot be purchased. The items would still be visible in the widget, but not possible to purchase them.


    2) If you want to give us a temporary login to your site, and can tell us where to look for that widget so we can check the problem, we can check to see if we can make it compatible with that widget. 

  • Ivan replied

    Hi Stefan,

    Thank you for reply.

    I understand that there are many variations, but the widget I'm talking about is not a particular widget, but the standard Woocommerce one. After activating Woocommerce, the option to list the products in order by date, price, random or sales appears in the widgets. It is identified in the source code with the following string:

    <div id = "woocommerce_products-1" class = "col pb-0 widget woocommerce widget_products">

    If you have a standard Woocommerce installation you should also have this widget available. The visualization problem arises right here.

    Since it's a Woocommerce standard it should probably be involved in the functionality of your plugin, but sadly it doesn't work.

  •   WebWizards replied privately
  •   Ivan replied privately
  •   WebWizards replied privately
  •   Ivan replied privately
  •   WebWizards replied privately