Magento Custom Category for New Products -
help: create custom category new products setted new date , new date. write code in custom layout update:
<reference name="content"> <block type="catalog/product_new" name="product_new" template="catalog/product/list.phtml"></block> </reference> i see displaying new products there problems:
- there note message: "there no products matching selection." new products populated in category
- toolbar sort dropdown when select attributes no changes such sort name or sort price
please note create new.php located in core local folder , there sort function
->addattributetosort('news_from_date', 'desc')
try below code ,i hope show sort order
<reference name="content"> <blocktype="catalog/product_new" name="product_new" template="catalog/product/list.phtml"> <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>
Comments
Post a Comment