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

Batch adding of attributes
 
desiboyz
Jr. Member
 
Total Posts:  4
Joined:  2008-03-30
 

Hello,

I am trying to add a batch of attributes to an attribute group called “Specs”. Is there documentation on how or where to look for the code that the website uses to add attributes? I started playing around with the code, using the following code:

$attr Mage::getModel('eav/entity_attribute')    
                ->
setStoreId(0)
                ->
load(1291);

This will let me retrieve the attribute. But how can I add an attribute to a group? Also, how can I can obtain the group an attribute belongs to?

Thanks,
Ken

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