Products — Add to Wishlist
The LiSA Player dispatches a message when a user clicks the "Add to Wishlist"-CTA on a product card or sticker.
This message is sent by the LiSA Player to the host app / environment.
Properties
Along with all standard Product message properties, an Add to Wishlist message includes the following additional properties:
intent
Required.
The intent property specifies the action to be performed on the product. It can have one of the following values:
add– Indicates that the product should be added to the wishlist.remove– Indicates that the product should be removed from the wishlist.
messageType
Required.
lsc:product:add-to-wishlist
Legacy Properties
If your integration uses LiSA Player Version 1, none of the properties described above will be available.
For LiSA Player Version 2, legacy properties can be ignored.
action
Required.
like.grant or like.revoke
⚠️ Please use messageType instead.
target
Required.
carousel.item
⚠️ Please use messageType instead.
Type Definition
interface ProductAddToWishlistMessage extends Omit<
ProductMessage,
'messageType'
> {
intent: 'add' | 'remove';
messageType: 'lsc:product:add-to-wishlist';
}Examples
Last updated