Hello friends,
app\code\core\Mage\Catalog\Block\Product\List.php (line 86)
$this->_productCollection = $layer->getProductCollection();
replace by
$this->_productCollection = $layer->getProductCollection()->joinField(‘inventory_in_stock’, ‘cataloginventory_stock_item’, ‘is_in_stock’, ‘product_id=entity_id’,’is_in_stock>=0′, ‘left’)->setOrder(‘inventory_in_stock’,’desc’);
and you are done.
Thanks,
Jignesh
This code is not working
Hello Kashish,
This code is working.
Thanks,
Jignesh
hi this code no working in magento 1.5.0.1
Hello Roberto,
Its working.
Please contact me on jc.mca1985@gmail.com if not working then.
you can add me on skype as well skype id : er.jignesh.chauhan
Thanks,
Jignesh
i tired on website with magento 1.7.0.2..it did not work