How do I display only attributes that are assigned to products? 

Please LogIn to Reply!

Post By: admin | 26-01-2012 06:35 Reply


Here is the code I have so far which allows me to display the attribute options in my drop down menu, but I would like to get only options that have been assigned to menus. Anyone know how to do this?

$attribute Mage::getModel('eav/config')->getAttribute('catalog_product'$id);
  foreach ( 
$attribute->getSource()->getAllOptions(true) as $option){
print '<li><a href="'.Mage::getURL().$path.$url.$option['value'].'">'.$option['label'].'</a></li>';

`Reply Or Comment!
Please LogIn to Reply!