Translate

In this Tutorial, We are going to show How to display product category on right or left side with only simple changes.
First we will have to build new block into the XML for displaying the category navigation like: -

/app/design/frontend/default/default/layout/catalog.xml
Open Catelog.xml page and then search for keyword "Default layout, loads most of the pages".
after fining this keywords then you have to put below code into that block.





If you want to change the position of layout in Magento then you can also change into the reference name as (RIGHT, LEFT, FOOTER, etc).

Now Build a new page on navigated path: -

/app/design/frontend/default/default/template/catalog/navigation/ right_home_nav.phtml

Now paste this below code again into new build page named right_home_nav.phtml

Browse

getChildHtml('topLeftLinks') ?>
Important Note -> If you want to display categories list on Home Page so paste below code in riht_home_nav.phtml

getRequest()->getRouteName();

 $identifier = Mage::getSingleton('cms/page')->getIdentifier();
 if($routeName == 'cms' && $identifier == 'home') { ?>
    

Related Category

getChildHtml('topLeftLinks') ?>
Now remove the cache and refresh the page the reload.
Thanks

If you have and query then feel free to contact me or you can ask your query related to Advanced Programming.

0 comments:

Post a Comment

 
Top