protected function addToWishlist(array $cart)
    {
        $data = array(
            'user_id' => $cart['user_id'],
            'store_id' => $cart['store_id'],
            'product_id' => $cart['product_id']
        );

        return $this->wishlist_action->add($data);
    }
protected function addToWishlist(array $cart)
    {
        $data = array(
            'user_id' => $cart['user_id'],
            'store_id' => $cart['store_id'],
            'product_id' => $cart['product_id']
        );

        return $this->wishlist_action->add($data);
    }
protected function addToWishlist ( array $ cart ) { $ data = array ( 'user_id' => $ cart [ 'user_id' ] , 'store_id' => $ cart [ 'store_id' ] , 'product_id' => $ cart [ 'product_id' ] ) ; return $ this -> wishlist_action -> add ( $ data ) ; }
Adds a product to the wishlist
@param array $cart
@return array
Adds a product to the wishlist