Skip to main content
replace useless tags
Link
Fabian Schmengler
  • 66.2k
  • 25
  • 191
  • 422
Tweeted twitter.com/#!/StackMagento/status/532481981158658050
Source Link
Attila Naghi
  • 4.2k
  • 4
  • 41
  • 81

How do I get all of the attribute name of a specific product using the product id or sku?

I want to get all of the attributes for a specific product using its id or sku. This is my try:

$prod=Mage::getSingleton('catalog/product')->load(8536); var_dump($prod->getAttributeText()); 

but i got this error message: Call to a member function getSource() on a non-object in... What should I do ?