B-219 Sec-55 Noida, India
+918010221733

Get Configurable product’s Children’s (simple product) custom attributes

<?php
// input is $_product and result is iterating child products
$conf = Mage::getModel('catalog/product_type_configurable')
->setProduct($_product);
$col = $conf->getUsedProductCollection()
->addAttributeToSelect('*')->addFilterByRequiredOptions();
foreach($col as $simple_product){
var_dump($simple_product->getId());
}
?>
(Visited 39 times, 1 visits today)

Leave a reply