Get Configurable product's Child products

+1 vote
64 views
asked Jun 13, 2016 in Magento by Shari
How can we Get Configurable product's Child products with the code in Magento?

1 Answer

0 votes
answered Jun 13, 2016 by Juno
This is how you can get the child products out of the configurable ones.

<?php
$allchildProducts = Mage::getModel('catalog/product_type_configurable')->getUsedProducts(null, $product);
?>
Please note the input is $product which is the configurable and the result is the list of child products.

Related questions

0 votes
0 answers 278 views
+1 vote
1 answer 399 views
+1 vote
1 answer 363 views
0 votes
2 answers 306 views
0 votes
1 answer 323 views
...