Add All Attributes To A Collection

Updated . Posted . Visible to the public.
$attributes = Mage::getSingleton('catalog/config')->getProductAttributes();
$collection->addAttributeToSelect($attributes);

Mike Whitby
Last edit
Posted by Mike Whitby to Magento (2012-08-29 13:21)