I'm setting up a website for a client and he wants to show certain product categories based on user roles on his sidebar.
I already have all products hidden by role, but I can't hide them on sidebar or search.
For example, Role A can only see category A and B and Role B can only see C and D on sidebar.
Also, Role A can only search for products from categories A and B and Role B for products from category C and D.
Can you guys help me or advise me one a plugin?