Missing products if Restrict Categories is enabled

Hi – we’ve isolated the problem to this plugin. If this plugin is enabled, we have products missing from some categories when we are browsing our web shop, but if we disable the plugin, all products show up as expected. We don’t have product-level settings, but we nonetheless have 63 of 68 products missing for non-logged in users. Then logged in users see all 68 products in this given category, even though our restriction rules don’t apply to this category at all. What might be happening?

https://www.spectrumsupplements.com/supplements/brands/douglas-labs-brands/

This category has 68 products, freely visible, if you log in. But no restrictions set on these products or this category.

I can supply login info if needed.

Thanks

Bill


Comments

2 responses to “Missing products if Restrict Categories is enabled”

  1. After reviewing the site, I noticed that there are products filed under several categories some of which are restricted to specific groups. Therefore, these products are restricted for visitors as they should based on the plugin’s functionality.

    Cheers,
    George

  2. Hi William,

    How do you use Groups Restrict Categories? Do you restrict only post categories or both categories and product categories? If you don’t need to restrict product categories then you should just disable that taxonomy under Groups > Restrict Categories.

    However, from your description it seems that this is more of a product restriction issue, so I think it’s better for me to have a look at your site.
    You can send temp admin access to george@itthinx.com and on the subject please indicate the title of this topic.
    Also, please enable debugging in case there is an issue/conflict logged that is worth noticing.

    To enable debugging, edit your wp-config.php file and do the following:
    Replace this line: 

    define( ‘WP_DEBUG’, false );

    with these lines:

    define( ‘WP_DEBUG’, true );
    
define( ‘WP_DEBUG_LOG’, true );
    
define( ‘WP_DEBUG_DISPLAY’, false );

    Kind regards,
    George

Share