cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9 Layered Navigation not working

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Magento 1.9 Layered Navigation not working

Hello everyone.

 

A new comer to this platform here

 

I have a custom module in which Im showing a product collection based on attribute. I want to show magento layered navigation in left side of the page. 

 

<reference name="left">
         <block type="catalog/layer_view" name="catalog.leftnav" template="catalog/layer/view.phtml "/>
</reference>

This is the layout code Im using. But when i load my module's page, its throwing an error.

 

Fatal error: Call to a member function getSortedChildren() on boolean in C:\xampp\htdocs\xxxxxxxxxx\app\design\frontend\rwd\default\template\catalog\layer\state.phtml on line 36

 

How can I solve this issue?

 

Thank You

1 REPLY 1

Re: Magento 1.9 Layered Navigation not working

Found the solution.

 

Under the Anchor category in the RWD theme's catalog.xml, change this

 

   

<reference name="left_first">
       <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml">
           <block type="core/text_list" name="catalog.leftnav.state.renderers" as="state_renderers" />
       </block>
   </reference>

to this

 

  

 <reference name="left">
       <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml">
           <block type="core/text_list" name="catalog.leftnav.state.renderers" as="state_renderers" />
       </block>
   </reference>
Yep, that is sadly all it took. No idea why _first was added there if it just causes layered nav to not function.

 

OpenSource Expert | OpenSource Technologies | www.opensourcetechnologies.com
Magento plugins released: http://www.opensourcetechnologies.com/product/product-category/magento-extensions