I am looping through products results, and if the product is a grouped product, I want to get all products in that group. I\'m doing this:
$products = Mage::getM
To get product collection by type:
$product = Mage::getModel('catalog/product')
->getCollection()
->addAttributeToFilter('type_id', array('eq' => 'grouped'))
->load();
$parentProductId = array();
foreach($product as $simpleProducts) {
$simpleProducts->loadParentProductIds();
array_push($parentProductId,$simpleProducts->getParentProductIds();
}