Get dropdown option values
The dropdown value that you want to get an option values.$sAttributeName
$sAttributeName = 'color'; $optionValues = Mage::getResourceModel('catalog/product') ->getAttribute($sAttributeName) ->getSource() ->getAllOptions(false);
You dont want the empty value in the option values then set the false value for first argument in below function call
getAllOptions(false)
No comments:
Post a Comment