Social Icons

twitterfacebookgoogle pluslinkedinemail

Wednesday 12 March 2014

Display Left navigation on product listing page in magento



Hello Freinds,

If you want to display the left navigation bar on product listing page in magento then please follow the following steps.

1. First of all you need to create/use local.xml from your current theme like

   app\design\frontend\default\default\layout

2. Now you need to just write the code like




<?xml version="1.0"?>
<layout version="0.1.0">
<catalog_category_layered>      
       <reference name="left">
           <action method="unsetChild"><alias>catalog.leftnav</alias></action>
       </reference>
       <reference name="product_list">
          <action method="insert"><blockName>catalog.leftnav</blockName></action>
       </reference>
    </catalog_category_layered>
</layout>
3. Now Please open the list.phml from your theme folder

   \app\design\frontend\default\modern\template\catalog\product

4. Now You need to add this code

<?php echo $this->getChildHtml('catalog.leftnav') ?>

5. Please check after refresh the magento Cache from backend.

I hope this article is useful to you...

Thanks,
Enjoy Your Self,


No comments :

Post a Comment

 

Free Advertisement

Free Advertisement

Free Advertisement

Free Advertisement