且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Magento:如何获取属于属性集的属性?

更新时间:2023-11-30 12:07:16

我相信答案就在于此模型

I believe the answer lies in this model

Mage::getModel('catalog/product_attribute_set_api')->items($setId);

该类是Mage_Catalog_Model_Product_Attribute_Api,它似乎有两个方法. items()方法似乎可以满足您的要求,即 从指定的属性集中检索属性"

The class is Mage_Catalog_Model_Product_Attribute_Api it seems to have two methods. The items() methods seems to do what you ask i.e. "Retrieve attributes from specified attribute set"

我希望对您有所帮助:)

I hope that helps :)