
If you get configurable products children custom attributes in Magento. then provided below code put that Code as per your requirements.
$_product = Mage::getModel('catalog/product')->load(108);//categoty id $conf = Mage::getModel('catalog/product_type_configurable')->setProduct($_product); $col = $conf->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions(); foreach($col as $simple_product){ var_dump($simple_product->getId()); }
About Author:
Kalpesh Chavada
Kalpesh Chavada is Our Founder & CEO of Akshar Group Technologies. He is serving with 11+ years of experience in different technologies like Magento, WordPress, Laravel, jQuery, Shopify, Branding, and Digital Marketing. He is very good with creative logic and always ready to take on challenges.
