Follow by Email

Tuesday, November 30, 2010

Get product in your home page with pagination in magento

At last i have got a good solution of this problem
in your home CMS remove

{{block type="catalog/product_list" category_id="3" template="catalog/product/list.phtml"}}

from your Content area and add

<reference name="content">
<
block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
<
action method="setCategoryId"><category_id>3</category_id></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>


in your left menu Design -> Page Layout under Layout Update XML
now your pagination will come..

1 comment:

  1. Another great post. I am glad to visit your Blog. You have very cool stuff here and it's great to be part of this segment.
    magento developers india

    ReplyDelete