Home > @shopware-pwa/shopware-6-client > addWishlistProduct

# addWishlistProduct() function

Add a product with a specific ID to the wishlist

Signature:

export declare function addWishlistProduct(productId: string, contextInstance?: ShopwareApiInstance): Promise<{
    apiAlias: string;
    success: boolean;
}>;

# Parameters

Parameter Type Description
productId string
contextInstance ShopwareApiInstance

Returns:

Promise<{ apiAlias: string; success: boolean; }>

# Exceptions

ClientApiError

# Remarks

Only for logged-in users