Sidebar product categories by user roles
Im setting 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 cant hide them on sidebar or search.
For example, Role A can only see categoria 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 categorie C and D
Can u guys help me or advice me a plugin?