Last Updated: February 25, 2016
·
810
· dsalvagni

Magento - getting simple product list of a configurable product

<?php if($_product->getTypeId() == "configurable"):
    $products = $_product->getTypeInstance()->getUsedProductIds();
        foreach($products as $p):
            $productSimple = Mage::getModel('catalog/product')->load($p);
        endforeach;
    endif;
?>