Appearance
addWishlistProduct
Definition
Add a product with a specific ID to the wishlist
Signature
ts
export async function addWishlistProduct(
productId: string,
contextInstance: ShopwareApiInstance = defaultInstance
): Promise<{
apiAlias: string;
success: boolean;
}>
Parameters
Name | Type | Description |
---|---|---|
productId | string | ID of the product to add to the wishlist |
contextInstance | ShopwareApiInstance | instance of the api client (by default it's an Axios instance) |
Return type
ts
Promise<{
apiAlias: string;
success: boolean;
}>
Usage example
WARNING
Example is generated automatically. Sometimes it's required to be adjusted to your needs.