Sunday, March 18, 2012

How do I set the default sort order for catalog pages?


In the same place, app / code / core / Mage / Catalog / Block / Product / List / Toolbar.php
from this:
$this->_availableOrder = array('name'=>'Name''position'=>__('Best Value'), 'price'=>__('Price'));
I just cut out this:
'position'=>__('Best Value'),
leaving this:
$this->_availableOrder = array('name'=>'NAME''price'=>__('PRICE'));
It works in my front end, but I am not sure if it is a correct practice or 
if it may give trouble somewhere, sometimes, later on…

No comments:

Post a Comment