Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

set default sort by date in magento 1.7.0.2
 
Krzysiek_Pe
Jr. Member
 
Total Posts:  4
Joined:  2012-03-28
 

Hi - thanks in advance for any help.
I have a issue with set default sort by date in magento 1.7.0.2.
I was adding date to sorting methods in catalog list. If I chose sort by date, list is sorting by date - this is working good.
But, what should i do for set default sort by date (DESC) in catalog list?
In my case, not working these solutions:
catalog.xml

<action method="setDefaultDirection"><dir>desc</dir></action>
<
action method="setDefaultOrder"><field>created_at</field></action>

and:
Catalog/Block/Product/List/Toolbar.php
protected $_direction â€˜desc’;
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top