Last Updated: February 25, 2016
·
870
· 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;
?>