Step 1:
Create New CMS Page in Below Content Add.
{{block type="catalog/product_outofstock" template="catalog/product/list.phtml" column_count="4"}}
Step 2 :
Create New PHP File Below Path.
Example :- app/code/local/Mage/Catalog/Block/Product/Outofstock.php
Step 3 :
OutofStock.php in Add Below Function.
protected function _getProductCollection()
{
$products = Mage::getModel('catalog/product')
->getCollection()
->joinField(
'is_in_stock',
'cataloginventory/stock_item',
'is_in_stock',
'product_id=entity_id',
'{{table}}.stock_id=1',
'left'
)
->addAttributeToSelect('*')
->addAttributeToSort('entity_id', 'desc')
->addAttributeToFilter('is_in_stock', array('eq' => 0));
return $products;
}
Create New CMS Page in Below Content Add.
{{block type="catalog/product_outofstock" template="catalog/product/list.phtml" column_count="4"}}
Step 2 :
Create New PHP File Below Path.
Example :- app/code/local/Mage/Catalog/Block/Product/Outofstock.php
Step 3 :
OutofStock.php in Add Below Function.
protected function _getProductCollection()
{
$products = Mage::getModel('catalog/product')
->getCollection()
->joinField(
'is_in_stock',
'cataloginventory/stock_item',
'is_in_stock',
'product_id=entity_id',
'{{table}}.stock_id=1',
'left'
)
->addAttributeToSelect('*')
->addAttributeToSort('entity_id', 'desc')
->addAttributeToFilter('is_in_stock', array('eq' => 0));
return $products;
}