Vinai / groupscatalog2

Magento extension to enable you to hide categories and products from customers depending on their customer group. This is a Magento 1.6 and newer compatible version of the Netzarbeiter Customer Groups Catalog extension.
139 stars 59 forks source link

Search finds products in hidden category #126

Closed KlausAnt closed 8 years ago

KlausAnt commented 8 years ago

Thanks for a great extension, first of all :-) If a product is placed in a category that is set to hide from groups = not logged in, the product can still be searched and viewed on the product list page if you are not logged in. If product name is clicked the page will default to login page as expected. The product is set to hide from groups = use default = show products by default.

Is this default behavior to be able to view a product, placed in a hidden category?

Vinai commented 8 years ago

Hi, this is indeed the intended behavior. In Magento, Products and Categories are independent entities. A product can be assigned to any number of categories. For that reason products have to be hidden from customer groups, too, just as the categories.