2026 Executive BenchmarkMid-Market Enterprise Modernization: How leaders across unify Commerce, Odoo ERP & AI in 90 days.
MAGENTO COMMERCE

How to get configurable products childrens custom attributes in magento

If you get configurable products children custom attributes in Magento. then provided below code put that Code as per your requirements. $conf = Mage::getModel('catalog/product_typ...

Akshar Group Technologies
Dec 25, 2020
1 min read
Verified Source

If you get configurable products children custom attributes in Magento. then provided below code put that Code as per your requirements.

php
$_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());
}
Share this playbook
LET'S BUILD WHAT'S NEXT

What's Holding Your Business Back?

Tell us where you want to go, what's getting in the way, and we'll help you figure out the technology to get there.

No sales pitch. Confidential strategic advisory.