Skip to content
On this page

mergeWishlistProducts

Definition

Merge the current Wishlist with a products with provided IDs

Signature

ts
export async function mergeWishlistProducts(
  productIds: string[],
  contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<{
  apiAlias: string;
  success: boolean;
}> 

Parameters

NameTypeDescription
productIds
Array<string>
IDs of the products to merge with 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.

Open in StackBlitz

mergeWishlistProducts has loaded