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:

  1. there note message: "there no products matching selection." new products populated in category
  2. 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

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -