我想获取自定义属性选项的列表,以便创建它们的菜单。
自定义属性为:nf_features,标签为Features。
感谢!
答案 0 :(得分:1)
$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', '158');
foreach ( $attribute->getSource()->getAllOptions(false) as $option){
echo $option['label']."<br>";
}