public function getValueSelectOptions() { if ($this->getAttribute() === 'type_id') { $arr = Mage::getSingleton('catalog/product_type')->getOptionArray(); $options = array(); foreach ($arr as $k => $v) { $options[] = array('value' => $k, 'label' => $v); } return $options; } return parent::getValueSelectOptions(); }
public function getValueSelectOptions() { $attributeName = array('is_new' => 'Is new', 'is_special' => 'Is special', 'qty' => 'Qty', 'out_of_stock' => 'Is Out Of Stock'); if (!array_key_exists($this->getAttribute(), $attributeName)) { return parent::getValueSelectOptions(); } return array(array('label' => 'No', 'value' => 0), array('label' => 'Yes', 'value' => 1)); }