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

Sorting Categories
 
kudoslabs
Jr. Member
 
Total Posts:  23
Joined:  2012-02-28
 

How can i sort the categories by both price (as it currently does) but also alphabetically?

 
Magento Community Magento Community
Magento Community
Magento Community
 
kudoslabs
Jr. Member
 
Total Posts:  23
Joined:  2012-02-28
 

worked it out myself:

in app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php

if ($this->getCurrentOrder()) {
  $this
->_collection->setOrder($this->getCurrentOrder(), $this->getCurrentDirection());
  
$this->_collection->setOrder('name'$this->getCurrentDirection());
 
}
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top