search
top

Get all product attributes in Magento

Hello All,

I am writing here a simple but important code snippet for getting all the existing product attributes


$attributes = Mage::getSingleton('catalog/config')->getProductAttributes();
echo '<pre>';
print_r($attributes);
exit;

Leave a Reply

top