protected function deletePriceRule()
    {
        $this->controlAccess('price_rule_delete');

        if ($this->price_rule->delete($this->data_rule['price_rule_id'])) {
            $this->redirect('admin/sale/price', $this->text('Price rule has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Price rule has not been deleted'), 'warning');
    }
protected function deletePriceRule()
    {
        $this->controlAccess('price_rule_delete');

        if ($this->price_rule->delete($this->data_rule['price_rule_id'])) {
            $this->redirect('admin/sale/price', $this->text('Price rule has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Price rule has not been deleted'), 'warning');
    }
protected function deletePriceRule ( ) { $ this -> controlAccess ( 'price_rule_delete' ) ; if ( $ this -> price_rule -> delete ( $ this -> data_rule [ 'price_rule_id' ] ) ) { $ this -> redirect ( 'admin/sale/price' , $ this -> text ( 'Price rule has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Price rule has not been deleted' ) , 'warning' ) ; }
Deletes a price rule
Deletes a price rule