Try the Demo

Magento Forum

   
getAttributes() Method Retrieve no product attributes
 
iifire
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