Tutorialsplane

Magento get all disabled Products


Magento get all disabled Products : You can get Disabled inactive products using the Mage::getModel(‘catalog/product’) Model. You can add filters to get the inactive disabled products. Here we are going to explain the collection filter to get the disabled/inactive products.


Magento get all disabled Products

Here is syntax to get the disabled product in magento.

Magento get all disabled Products:

$products = Mage::getModel('catalog/product')->getCollection()
    ->addAttributeToSelect('*')
    ->addFieldToFilter('status',Mage_Catalog_Model_Product_Status::STATUS_DISABLED);
	

The above Filter will return all disabled products in magento.