Skip to content
On this page

removeWishlistProduct ​

Definition ​

Delete a product with a specific ID from the wishlist

Signature ​

ts
export async function removeWishlistProduct(
  productId: string,
  contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<{
  apiAlias: string;
  success: boolean;
}> 

Parameters ​

NameTypeDescription
productId
string
ID of the product to remove from 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

removeWishlistProduct has loaded