Load product by product id
$product = Mage::getModel('catalog/product')
->load(YOUR_PRODUCT_ID);
Get children products (all associated children products data)
$childProducts = Mage::getModel('catalog/product_type_configurable')
->getUsedProducts(null,$product);
$product = Mage::getModel('catalog/product')
->load(YOUR_PRODUCT_ID);
Get children products (all associated children products data)
$childProducts = Mage::getModel('catalog/product_type_configurable')
->getUsedProducts(null,$product);
No comments:
Post a Comment