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