$arrayAttrs = array(
'sku',
);
$groupedProductsCollection = Mage::getModel(‘catalog/product’)
->getCollection()
->addAttributeToFilter('type_id','grouped')
->addAttributeToFilter('status', Mage_Catalog_Model_Product_Status::STATUS_ENABLED)
->addAttributeToSelect($arrayAttrs);
'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