$attribute = Mage::getSingleton(‘eav/config‘)->getAttribute(‘catalog_product‘, ‘color‘);
if ($attribute->usesSource()) {
$options = $attribute->getSource()->getAllOptions(false);
}
magento 获取attribute的所有option,布布扣,bubuko.com
原文:http://www.cnblogs.com/fengliang/p/3806092.html