Display the recently added products first in Magento
Please copy the file Toolbar.php from
app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php
And Create a Directory structure in local and paste the Toolbar.php as shown below
app/code/local/Mage/Catalog/Block/Product/List/Toolbar.php
and Find the below code at around line 232
if ($this->getCurrentOrder()) {
$this->_collection->setOrder($this->getCurrentOrder(), $this->getCurrentDirection());
}
Now Replace the above code with below code:
if ($this->getCurrentOrder()) {
if(($this->getCurrentOrder())=='position'){
$this->_collection->setOrder('entity_id','desc');
}
else {
$this->_collection->setOrder($this->getCurrentOrder(),$this->getCurrentDirection());
}
}
This post includes how to display added products first at magento. Pretty well maintained post and keep updating.
ReplyDeleteBuy zambian emerald natural online
I was just looking for this kind of posts and this kind of posts is so well mannered in the way of informations. Thanks for sharing this posts. keep updating.
ReplyDeletepre and probiotic capsules
Really a great post, thanks for it.
ReplyDeletegastric bypass surgery in delhi
Author deserves to be appreciated, thanks for the post and keep updating.
ReplyDeletebuy Australian opal online
mycophenolate tablet | mycophenolate capsules
ReplyDeletetreatment for sarcoma pancreas in noida
ReplyDeletePancreatic Cancer doctor In noida
Pancreatic Cancer Consultant In noida
This post is really nice and very well maintained, thanks for it and keep updating your posts.
ReplyDeletegemstone wholesaler in Delhi