有一个属性集,我如何获得它包含的属性列表(或者更好的是,只是不属于默认属性集的自定义属性)?Magento:如何获取属性集属性?
设置本身可以通过多种方式获得的属性,如:我需要使用设置属性
$entityTypeId = Mage::getModel('eav/entity')->setType('catalog_product')->getTypeId();
$attributeSet = Mage::getResourceModel('eav/entity_attribute_set_collection')->setEntityTypeFilter($entityTypeId)->addFilter('attribute_set_name', 'Default');
注意,所以从产品得到的属性列表是不是我的解决办法寻找。
我想你的意思是'法师:: getModel('catalog/product_attribute_api') - > items($ setId );','... attribute_set_api'会给出一个'Mage_Catalog_Model_Product_Attribute_Set_Api',对吗? –