Skip to content

Instantly share code, notes, and snippets.

@rodde177
Last active August 29, 2015 14:24
Show Gist options
  • Save rodde177/b3b41faa0ac5bf21e065 to your computer and use it in GitHub Desktop.
Save rodde177/b3b41faa0ac5bf21e065 to your computer and use it in GitHub Desktop.
get configurable products attribute id
$theId = Mage::getModel('catalog/product_type_configurable')->getConfigurableAttributeCollection($product)->getColumnValues('attribute_id');
//$childProducts = Mage::getModel('catalog/product_type_configurable')->getUsedProducts(null, $product); //$attributeIds instead of null
//$childProducts = $product->getTypeInstance()->getUsedProducts();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment