Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

getAttributes() Method Retrieve no product attributes
 
beyondnb
Jr. Member
 
Avatar
Total Posts:  2
Joined:  2010-06-06
China
 

$_navigation Mage::getSingleton('catalog/layer');
$_category   $_navigation->getCurrentCategory();
$_productCollection $_category->getProductCollection();
foreach(
$_productCollection as $product)
{
     
if(true{
         
break;
      
}
}
return $product->getAttributes(); // or return $product->getAttributes($myGroupId);
The getAttributes() method does’t work as I want,it retrieve nothing.

Notes:I want get attributes by groupId in the attribute set,Help!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top