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

Attribute Set’s
 
timocin
Jr. Member
 
Total Posts:  11
Joined:  2008-10-20
 

Hi,

I have the problem that i want to write a custom module. For this module i need an attribute Set that i have created with the admin panel.

How can i obtain this set and each attribute? Has anyone an idea?

regards

timocin

 
Magento Community Magento Community
Magento Community
Magento Community
 
retif
Sr. Member
 
Total Posts:  171
Joined:  2008-08-16
Odessa, Ukraine
 

$entityType Mage::getModel('catalog/product')->getResource()->getEntityType();
$collection Mage::getResourceModel('eav/entity_attribute_set_collection')->setEntityTypeFilter($entityType->getId());

take a look at Mage_Catalog_Model_Product_Attribute_Set_Api

 
Magento Community Magento Community
Magento Community
Magento Community
 
timocin
Jr. Member
 
Total Posts:  11
Joined:  2008-10-20
 

and how are the array labels?

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