改變magento 默認排序爲降序(新加的產品排在前面)

The Toolbar

Look for the file toolbar.php located in:

/app/code/core/Mage/Catalog/Block/Product/List

Create the Local folder

Create the same folder structure in the local. Now the future upgrades will not affect your changes.

Should be like:

/app/code/local/Mage/Catalog/Block/Product/List

Edit the Toolbar

Now you have to change 1 single stupid line.

Look for:

 

  protected $_direction           = 'asc';

 

to 

 

  protected $_direction           = 'desc';

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章