Get Configurable product's Children set (simple products) custom attributes

+2 votes
182 views
asked Jun 13, 2016 in Magento by Goombay
Hi Folks,

How is this possible to Get Configurable product's Children set (simple products) custom attributes?

There should be a way for this already. Can anyone help me?

1 Answer

0 votes
answered Jun 14, 2016 by Johne Cage
<?php
$conf = Mage::getModel('catalog/product_type_configurable')->setProduct($product);

$col = $conf->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions();

foreach($col as $simple_product)
{
    var_dump($simple_product->getId());
}
// Note: input is $product and result is iterating child products
 ?>

Related questions

+1 vote
1 answer 68 views
0 votes
0 answers 293 views
+1 vote
1 answer 409 views
+2 votes
1 answer 70 views
asked Jun 13, 2016 in Magento by Arton
0 votes
1 answer 287 views
asked Jun 29, 2016 in Magento by Mark Brown
0 votes
1 answer 342 views
asked Jun 29, 2016 in Magento by Akshay Raj
...