How to sort magento products by newest product

by | Jan 5, 2014 | 0 comments

This FAQ will show you how to easily sort your Magento products by newest product first.

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

upload the copy to:

app/code/local/Mage/Catalog/Block/Product/List/Toolbar.php (create a folder if it doesn’t exist already)

Now open the newly copied file and look for this line of code around line 232:

if ($this->getCurrentOrder()) {
$this->_collection->setOrder($this->getCurrentOrder(), $this->getCurrentDirection());

Replace it with the following:

if ($this->getCurrentOrder()) {
else {

Save your file, flush the Magento site caches and update your Magento indexes.



Submit a Comment

Your email address will not be published. Required fields are marked *

elan creative

We’re like the in-house website design team you always dreamed of, able to tell your story like nobody else, and focus on your bottom line along with you….

Elan Creative
UK: +44 (0)121 288 3449
NL: +31 (0)20 893 2923

freelance-website-designer s


Get a free quote for your website design project: