获取magento属性下拉值

How can I get magento attribute value from dropdown: yes or no option and multiple value dropdown?

As I know - single text will get the value by this:

<?php $designer = Mage::getModel('catalog/product')->load($_product->getId())->getAttributeText('brands'); ?>

Thanks.

You can do like this :

...
$attrCode = 'color';
$storeid = Mage::app()->getStore()->getStoreId();
$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', $attrCode);
$attr_id = $attribute->getId();
$values = array();
$valuesCollection = Mage::getResourceModel('eav/entity_attribute_option_collection')
    ->setAttributeFilter($attr_id)
    ->setStoreFilter($storeid, false)
    ->load();
foreach ($valuesCollection as $item) {
    $values[$item->getId()] = $item->getValue();
}
var_dump($values); // prints that attribute values as array
...

Hope it will help you.

you need to write code like this :

  $attribute_code = "color"; 
  $attribute_details = Mage::getSingleton("eav/config")->getAttribute("catalog_product", $attribute_code); 
  $options = $attribute_details->getSource()->getAllOptions(false); 
  foreach($options as $option){ 
   echo $option["label"];
  }