php - Display attribute by atribute id not on product page in magento -


i trying show attribute html attribute id in magento...the thing note don't have show on product page on phtml of custom module.....please me out have spent near 8 hours , important me

try out

$attributes = mage::getsingleton('eav/config')         ->getentitytype(mage_catalog_model_product::entity)         ->getattributecollection()         ->addsetinfo();  foreach ($attributes $attribute) {     if ($attribute->usessource())     {         echo "{$attribute->getfrontendlabel()}:\n";         foreach ($attribute->getsource()->getalloptions() $option)         {             echo "  {$option['label']}\n";         }         echo "\n";     } } 

or try below code

$attributemodel = mage::getsingleton('eav/config')     ->getattribute('catalog_product', $attributecode); 

where $attributecode attribute code e.g. color,manufacture.

for further info can refer link


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -