Restrict Categories by “either/or” instead of “and”

We have a setup where there are products in multiple categories but we’d like to restrict access to the actual categories based on the Group/Capability. So for example…

Category A has product 1, product 2, product 3 and is restricted to Group A with capability A.
Category B has product 2, product 4, product 5 and is restricted to Group B with capability B.

Product 2 is in both categories so it should be visible to both Groups A and B however it looks like you have to have capabilities for both Group A and B to see product 2.

How can we set it up so that this is an “either/or” situation instead of “and”?


Comments

2 responses to “Restrict Categories by “either/or” instead of “and””

  1. It does not. It seems to me that it would be easy to program in “if a user has this capability OR another capability allow access” instead of “if a user has this capability AND another capability allow access”. Can you point me where in the code this conditional statement is occurring and I’ll have a developer look at it?

  2. George Avatar

    Hi Chris,

    As you noticed the capability defines the accecibility for the respective group.
    So in order to give access to both groups on this product, you should add a dedicated category for this product only.
    Hope this matches your shop configuration.

    Kind regards,
    George

Share