Skip to content

Instantly share code, notes, and snippets.

@zeljkoprsa
Created March 2, 2012 13:35
Show Gist options
  • Save zeljkoprsa/1958435 to your computer and use it in GitHub Desktop.
Save zeljkoprsa/1958435 to your computer and use it in GitHub Desktop.
List New Products with toolbar (Grid/List, pagiantion the whole shebang )
<reference name="content">
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
<action method="setCategoryId"><category_id>8</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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment