Search This Blog

Monday, 2 April 2012

Get all grouped products with status Enabled

$arrayAttrs = array(
'sku',
);

$groupedProductsCollection = Mage::getModel(‘catalog/product’)
->getCollection()
->addAttributeToFilter('type_id','grouped')
->addAttributeToFilter('status', Mage_Catalog_Model_Product_Status::STATUS_ENABLED)
->addAttributeToSelect($arrayAttrs);

No comments:

Post a Comment