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 60 forks source link

Category still showing up on home page. #57

Closed nbunney closed 11 years ago

nbunney commented 11 years ago

Hi, I am setting up a wholesale category on a new site and the plugin works great except that it is allowing the category that is viewable by Wholesale customers only to show up on the pictorial list of categories on the home page. The category does not appear in the left side menu which is correct, but it does show up on the home page of the store. We are using the default f002 yellow theme (I believe) and the code that pulls the list of categories is found in app/design/frontend/default/f002/template/catalog/category/list.phtml:

 $cats = Mage::getModel('catalog/category')->load(2)->getChildren();
 $_viewCategories = explode(',' , $cats);

Category 2 is our default category. I forget if we have modified this piece of code or not.

The code then loops through each category. So why does the category show up when the template uses getChildren()? I am guessing I am doing something wrong here but I have no idea what.

Site is at http://stewart-jasper-almonds.com/Store/