开发者

Magento - How do I get a list of my custom attributes options?

I want to get a l开发者_C百科ist of my custom attributes' options, in order to create a menu of them.

The custom attribute is: nf_features and the label is Features.

Thank!


$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', '158');
foreach ( $attribute->getSource()->getAllOptions(false) as $option){
echo $option['label']."<br>";
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜