Product associated with more than 1 category

I’m having a issue that appears to be a bug.

I have a user that is in group X

I have a product “Z” that is in both Category A and B. Within Woocommerce it requires a “primary” category. So in this case the product’s “primary” category is A.

I have set the Catagory B to give read permissions to users in Group X.

However, despite having read access to Catagory B my user in group X can’t access the product.

How do I get this to honor permission across multiple categories regardless of which is set as primary?

7 Responses to Product associated with more than 1 category

  1. George March 13, 2023 at 11:53 am #

    You’re welcome.

  2. George March 10, 2023 at 6:59 pm #

    You’re welcome Andrew.

    Even though you cannot change the restriction condition, there is a simple approach you can use and get the desired result.
    For those products that are filed under two different categories, you can restrict them using a common group. Afterwards, the users that need to have access, can be added to this common group in bulk via Users.

    For example, assume that the Awesome Product is filed under Amazing category and Fabulous category. Both categories should be restricted to Awesome Group and then the authorised users should be members of Awesome Group.

    Kind regards,
    George

    • Andrew Glover March 10, 2023 at 7:50 pm #

      Thank you. We will proceed with that option for now.

  3. Andrew Glover March 10, 2023 at 4:34 pm #

    Thank you for the response George. Is there a way to change that to restrict based on group membership matching “Any” instead of “All”?

  4. George March 10, 2023 at 4:32 pm #

    Hi Andrew,

    Thanks for sharing your quality video with us.

    What you describe is in-line with my comment and it’s not a bug but rather how Groups is designed. When a product is restricted to more than one groups, as they derive even from restricted categories, then an authenticated user must be a member of all the restricting groups in order to have access to this product.

    Kind regards,
    George

  5. George March 3, 2023 at 8:46 pm #

    Hi Andrew,

    Welcome to our support channel and many thanks for using our content restriction tool on your site.

    What you describe doesn’t probably relate to the product’s primary category, which is something that I don’t notice anymore in WooCommerce when assigning a product to more than one categories. Which version of WooCommerce do you currently use?

    Normally when using Groups Restrict Categories, the members of the group restricting a category are able to view the category contents, that’s the basic idea behind the plugin.

    Is it possible that you restrict the second category for this product to a different group other than the Group X? Have you checked the contents of your debug.log in general and when trying to access the restricted category?

    Kind regards,
    George

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share