Showing results for 
Search instead for 
Did you mean: 

Reg:Get dropdown option values

Reg:Get dropdown option values

I have created custom dropdown  field in product page using admin backend. I need to check all dropdown values in query. I can get single value only. I dont know how to set multiple values in query.


$sAttributeName = 'new';
$mOptionValue = Array('Both','Yes','Site1');

$productNewObj = Mage::getModel('catalog/product')
->addAttributeToFilter('status', array('eq' => '1'))
->addAttributeToFilter('visibility', $visibility)

array('eq' => Mage::getResourceModel('catalog/product')->getAttribute($sAttributeName)


I tried may methods, it does not support multiple values.  I need to set multi values in getOptionId()

Advance Thanks