How To Get Configurable Products collection in Magento.?
Get Configurable Products collection in Magento:
In Magento, Configurable products are the one that have multiple options from product collection respectively. The whole process allows to get bet control over the product inventory with multiple options from one place. In other words they are also termed as ‘Configurable Products are collection of Simple Products‘. These products often contain associated products which are then called child or simple products respectively.
Magento Get Configurable Products collection Syntax:
$productCollection = Mage::getResourceModel('catalog/product_collection') ->addAttributeToSelect('*') ->addAttributeToFilter('type_id','configurable'); foreach ($productCollection as $product) { $productname = $product->getName(); }
You can fetch the detail about the configurable product collection by using the above code.