0

I am working on custom Magento theme.On search result page when i set root template = page/2columns-right.phtml then layer navigation not showing when i changed it page/2columns-left.phtml then layer navigation showing. Layer navigation showing on category page but not showing on search result page. any solution ??

3 Answers 3

1

<reference name="left_first"> Used only in rwd themes.If your theme is based on it then you are able to change it, otherwise this reference not exist in base theme. You can get help from here ->>> https://stackoverflow.com/questions/14838445/how-can-i-move-magentos-layered-navigation-block-from-left-column-to-right-colu

1
  • I was looking in base theme i very new in Magento
    – Kanika
    Commented Sep 10, 2015 at 10:44
1

You will need to re position the layered nav via xml by unsetting the block and inserting into the right structural block

 <?xml version="1.0"?>
    <layout version="0.1.0">
        <catalogsearch_result_index>
            <reference name="left">
                <action method="unsetChild"><alias>catalog.leftnav</alias></action>
            </reference>
            <reference name="right">
                <action method="insert"><blockName>catalog.leftnav</blockName></action>
            </reference>
        </catalogsearch_result_index>
    </layout>
4
  • Layer navigation showing on category page but not showing on search result page.
    – Kanika
    Commented Aug 6, 2015 at 10:32
  • Sorry wrong xml selector should be "catalogsearch_result_index" I have updated answer
    – Bobadevv
    Commented Aug 6, 2015 at 10:45
  • It's still not working
    – Kanika
    Commented Aug 6, 2015 at 12:30
  • Have you added the above to your local.xml file and than also cleared magento cache
    – Bobadevv
    Commented Aug 6, 2015 at 12:40
1

copy catalogsearch.xml in your theme change

<reference name="left_first"> 

line to

<reference name="right">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.