2

I know this has been asked before but could not get a reliable answer without suggesting some paid extension.

I need to hide some products to be visible only to user with some group id. I have a boolean attribute set to products called is_secure. I want products with this attribute set to true to be only visible to customers with group id = 2.

How can I go about doing this?

1 Answer 1

0

This cannot be solved without a complete extension. This is because hiding a product means hiding in many different places including search, catalog, direct link to the product and so on.

So I needed to create an extension and write plugins to each of these areas and remove the products from product collections there using plugins.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.