Delete WishList Item

DeleteWishListItem(productInfo)

Deletes a previously added wishlist item. Please refer to the example below.

You can call this method once the window.WishListHero_SDK object is initialized.
This API can be used for the same scenarios as addToWishList.

Arguments

Argument Type Description
ProductVariantId number
Required
the product id of the item to be added to wishlist
WishlistHash string
Required

Example

var productInfo = {
    ProductVariantId: number,
    WishlistHash: string
};
var deleted = await window.WishListHero_SDK.DeleteWishListItem(productInfo)