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?