i want to create configurable product.
when i select attribute set how can i get related attribute to create configurable product?
i use this code to select attribute
jQuery('#attribute_set_id').on('change', function() {
var a=(jQuery('#attribute_set_id').val());
<?php
$html='';
$att_id="<script>document.write(a)</script>";
$attributes = Mage::getResourceModel('catalog/product_attribute_collection')->setAttributeSetFilter($att_id)->getItems();
foreach ($attributes as $attribute)
{
if($attribute->getIsGlobal()==1 && $attribute->getIsVisible()==1 && $attribute->getIsConfigurable()==1 && $attribute->getFrontendInput()=='select' )
{
$id=$attribute->getId();
$html.= $attribute->getFrontendLabel();
$html.= "<input class='chk_attr validate-one-required' type=checkbox name=attribute[] value=$id >";
$html.= '<br>';
}
}
?>
jQuery('#check_fieldset_attr').html("<?php echo $html;?>");
});
but it not work properly.