The method subscribes the user to the notifications that the product is available.
You don't need to check for Web Push support, permission availability, or request it from the user using the methods available here. This method will do everything you need by itself.
An array of product IDs for which the user would like to unsubscribe from the product availability notification. You can use an empty array to unsubscribe from all products.
personaclick("unsubscribe_trigger", "product_available", {
item_ids: [], // unsubscribe from all products
email: "john.doe@examplestore.com"
});
Subscribe to the "Price Drop" trigger
Method Objective
The method subscribes the user to the notifications of a product price decrease.
You don't need to check for Web Push support, permission availability, or request it from the user using the methods available here. This method will do everything you need by itself.
An array of product IDs for which the user would like to unsubscribe from the price drop notification. You can use an empty array to unsubscribe from all products.