Display Products With Paging on Magento Home Page

Home / Magento / Display Products With Paging on Magento Home Page

If you want to display product on home page with pagination it can be done easly in magento backed without writing any custom code in file.
Display more products on magento home page so you need to set paging its easily created paging with some XML code in magento.

1. Go to CMS > Manage Pages and click on the Home page.

2. Under the “Design” tab, insert the following code in the “Update Layout XML” field:

<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"/>
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action>

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *