protected function saveProductBundle()
    {
        $this->controlAccess('product_bundle_edit');

        $product_id = $this->getSubmitted('product_id');
        $products = $this->getSubmitted('products', array());

        if ($this->product_bundle->set($product_id, $products)) {
            $this->redirect('admin/content/product', $this->text('Product bundle has been updated'), 'success');
        }

        $this->redirect('', $this->text('Product bundle has not been updated'), 'warning');
    }
protected function saveProductBundle()
    {
        $this->controlAccess('product_bundle_edit');

        $product_id = $this->getSubmitted('product_id');
        $products = $this->getSubmitted('products', array());

        if ($this->product_bundle->set($product_id, $products)) {
            $this->redirect('admin/content/product', $this->text('Product bundle has been updated'), 'success');
        }

        $this->redirect('', $this->text('Product bundle has not been updated'), 'warning');
    }
protected function saveProductBundle ( ) { $ this -> controlAccess ( 'product_bundle_edit' ) ; $ product_id = $ this -> getSubmitted ( 'product_id' ) ; $ products = $ this -> getSubmitted ( 'products' , array ( ) ) ; if ( $ this -> product_bundle -> set ( $ product_id , $ products ) ) { $ this -> redirect ( 'admin/content/product' , $ this -> text ( 'Product bundle has been updated' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Product bundle has not been updated' ) , 'warning' ) ; }
Saves a product bundle
Saves a product bundle