public function deleteFromWishlist($wishlist_action_model)
    {
        $product = array(
            'user_id' => $this->getCartUid(),
            'store_id' => $this->getStoreId(),
            'product_id' => $this->getSubmitted('product_id')
        );

        $result = $wishlist_action_model->delete($product);

        if ($this->isAjax()) {
            $this->outputJson($result);
        }

        $this->redirect($result['redirect'], $result['message'], $result['severity']);
    }
public function deleteFromWishlist($wishlist_action_model)
    {
        $product = array(
            'user_id' => $this->getCartUid(),
            'store_id' => $this->getStoreId(),
            'product_id' => $this->getSubmitted('product_id')
        );

        $result = $wishlist_action_model->delete($product);

        if ($this->isAjax()) {
            $this->outputJson($result);
        }

        $this->redirect($result['redirect'], $result['message'], $result['severity']);
    }
public function deleteFromWishlist ( $ wishlist_action_model ) { $ product = array ( 'user_id' => $ this -> getCartUid ( ) , 'store_id' => $ this -> getStoreId ( ) , 'product_id' => $ this -> getSubmitted ( 'product_id' ) ) ; $ result = $ wishlist_action_model -> delete ( $ product ) ; if ( $ this -> isAjax ( ) ) { $ this -> outputJson ( $ result ) ; } $ this -> redirect ( $ result [ 'redirect' ] , $ result [ 'message' ] , $ result [ 'severity' ] ) ; }
Deletes a submitted product from the wishlist
@param \gplcart\core\models\WishlistAction $wishlist_action_model
Deletes a submitted product from the wishlist