public function getDefaultOperatorOptions() { $op = parent::getDefaultOperatorOptions(); $op['{%'] = Mage::helper('rule')->__('starts from'); $op['%}'] = Mage::helper('rule')->__('ends with'); return $op; }
/** * Overwrite parent method to add new operators * * @return array */ public function getDefaultOperatorOptions() { if ($this->_defaultOperatorOptions === null) { $options = parent::getDefaultOperatorOptions(); $options['><'] = Mage::helper('easyshippingrules')->__('between'); $options['<>'] = Mage::helper('easyshippingrules')->__('not between'); $this->_defaultOperatorOptions = $options; } return $this->_defaultOperatorOptions; }