_objectId = 'id'; $this->_controller = 'promo_quote'; parent::__construct(); $this->_addButton('save_and_continue_edit', array( 'class' => 'save', 'label' => Mage::helper('salesrule')->__('Save and Continue Edit'), 'onclick' => 'editForm.submit($(\'edit_form\').action + \'back/edit/\')', ), 10); } /** * Getter for form header text * * @return string */ public function getHeaderText() { $rule = Mage::registry('current_promo_quote_rule'); if ($rule->getRuleId()) { return Mage::helper('salesrule')->__("Edit Rule '%s'", $this->escapeHtml($rule->getName())); } else { return Mage::helper('salesrule')->__('New Rule'); } } /** * Retrieve products JSON * * @return string */ public function getProductsJson() { return '{}'; } }