Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Add layred navigation to home page with pagination
 
kajal
Member
 
Total Posts:  60
Joined:  2010-06-27
 

Hello all,

Just in case someone is still facing issue to show layered navigation on the home page for 1.7 -

step :1
Go to CMS > pages > home page
select : design tab > place the following code in custom design :

<reference name="left">
<
block type="catalog/navigation" name="catalog.cat.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
<
block type="catalog/layer_view" name="catalog.leftnav" after="catalog.cat.leftnav" template="catalog/layer/view.phtml"/>
<
action method="unsetChild"><alias>right.reports.product.viewed</alias></action>
<
action method="unsetChild"><alias>right.reports.product.compared</alias></action>
</
reference>
<
reference name="content">
   <
block type="catalog/product_list" name="product_home" template="catalog/product/list.phtml">
      <
action method="setCategoryId">[b]<category_id>2</category_id>[/b]</action>
      <
block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
         <
block type="page/html_pager" name="product_list_toolbar_pager" />
      </
block>
      <
action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
   </
block>
</
reference>

where <category_id>2</category_id> has to be your root category

Step -2 :
make sure that your root category is enabled and set ‘is anchor’ to ‘yes’

Hope this helps smile

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top