Category Archives: Magento

Get disabled products Magento

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

$products->load();

foreach($products as $product) {
echo $product->getData(‘sku’).”<br />”;
}