on-internet
← Community

Get latest or new products on home page in magento with layout update

Stack Overflow ·

I create new theme in Magento and want to show latest or new products on home page with pagination and number of show product. I copied catalog/product/list.phtml from it's cored file to my template so that i can customize it. Below is code in layout update in homepage: <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/htm

Comments

Sign in or sign up to comment and upvote.

No comments yet.