Retrieving the Collection of Enabled Grouped Products in Magento

A couple of notes:

  • You can add any attribute by code to the array in order to prefetch its value.
  • Instead of ‘grouped’ you may use its static constant, this is simply shorter to type. Same applies to the enabled attribute filter.

$arrayAttrs = array(

$groupedProductsCollection = Mage::getModel(‘catalog/product’)
->addAttributeToFilter(‘status’, Mage_Catalog_Model_Product_Status::STATUS_ENABLED)