Skip to main content

Posts

Showing posts from June, 2014

Remove Category option from Layered Navigation options list in magnto

This is about how to remove the category from the layered navgation Please open to app/design/frontend/default/default/template/catalog/layer and open up view.phtml for edit.  < dl id = "narrow-by-list" > <?php $_filters  =  $this -> getFilters ()  ?> <?php  foreach ( $_filters  as  $_filter ):  ?>  <?php  if( $_filter -> getItemsCount ()):  ?> <?php  if( $_filter -> getName () !=  "Category" ) { ?> < dt > <?php  echo  $this -> __ ( $_filter -> getName ())  ?> </ dt > < dd > <?php  echo  $_filter -> getHtml ()  ?> </ dd > <?php }  endif;  ?> <?php  endforeach;  ?> </ dl >