Magneto Show Category on left side as but some time we require to hide particular category or subcategory
so we can remove just open the following file
app/design/frontend/yourtheme/default/template/catalog./layer/filter.phtml
after line 36 of this line add the following if condition and add your category name which u want to remove for us we have remove Electronics,Furniture
and that's it we get remove the Furniture and Electronics from left navigatin
Hope this will help you!
so we can remove just open the following file
app/design/frontend/yourtheme/default/template/catalog./layer/filter.phtml
after line 36 of this line add the following if condition and add your category name which u want to remove for us we have remove Electronics,Furniture
<ol> <?php foreach ($this->getItems() as $_item): ?> <?php if(!in_array($_item->getLabel(),array("Furniture","Electronics"))){?> <li> <?php if ($_item->getCount() > 0): ?> <a href="<?php echo $this->urlEscape($_item->getUrl()) ?>"><?php echo $_item->getLabel() ?></a> <?php else: echo $_item->getLabel() ?> <?php endif; ?> (<?php echo $_item->getCount() ?>) </li> <? } ?> <?php endforeach ?> </ol>
and that's it we get remove the Furniture and Electronics from left navigatin
Hope this will help you!
No comments:
Post a Comment
Thankyou for your Comments