protected function addPriceRule()
    {
        $this->controlAccess('price_rule_add');

        if ($this->price_rule->add($this->getSubmitted())) {
            $this->redirect('admin/sale/price', $this->text('Price rule has been added'), 'success');
        }

        $this->redirect('', $this->text('Price rule has not been added'), 'warning');
    }
protected function addPriceRule()
    {
        $this->controlAccess('price_rule_add');

        if ($this->price_rule->add($this->getSubmitted())) {
            $this->redirect('admin/sale/price', $this->text('Price rule has been added'), 'success');
        }

        $this->redirect('', $this->text('Price rule has not been added'), 'warning');
    }
protected function addPriceRule ( ) { $ this -> controlAccess ( 'price_rule_add' ) ; if ( $ this -> price_rule -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/sale/price' , $ this -> text ( 'Price rule has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Price rule has not been added' ) , 'warning' ) ; }
Adds a new price rule
Adds a new price rule