- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2016
09:26 PM
11-17-2016
09:26 PM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2016
04:58 AM
11-25-2016
04:58 AM
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
Magento plugins released: http://www.opensourcetechnologies.com/product/product-category/magento-extensions