Magento Get Configurable Products collection : Configurable Products are collection of simple products. it can contain many products associated with it known as simple product or child product. Here we are going to explain the method to get configurable products from magento collection.
Magento Get Configurable Products collection
Here is syntax for Magento Configurable Products collection –
Magento Get Configurable Products collection
$productCollection = Mage::getResourceModel('catalog/product_collection') ->addAttributeToSelect('*') ->addAttributeToFilter('type_id','configurable'); foreach ($productCollection as $product) { $name = $product->getName(); $id = $product->getId(); } |
The above collection will return the configurable products. You can get the detail about the product.