The method subscribes the user to the notifications that the product is available.
PersonaClick.subscribeForBackInStock(id, email, phone); |
Name | Type | Requirement | Description | |
---|---|---|---|---|
id | string | required | The product ID to notify of the product availability the user will be subscribed. | |
string/null | optionally | The current user's Email.
| ||
phone | string | optionally | The current user's phone in full international format.
|
PersonaClick.subscribeForBackInStock("100500"); |
PersonaClick.subscribeForBackInStock("100500", "john.doe@examplestore.com"); |
PersonaClick.subscribeForBackInStock("100500", null, "+4400114527199"); |
The method unsubscribes the user from the notification that the product is available.
PersonaClick.unsubscribeForBackInStock(params); |
Name | Type | Requirement | Description |
---|---|---|---|
params | array | required | Array with product IDs. See the example. |
PersonaClick.unsubscribeForBackInStock(new String[] {"100500", "146", "12"}); |
PersonaClick.unsubscribeForBackInStock(new String[] {}); // unsubscribe from all products |
The method subscribes the user to the notifications of a product price decrease.
PersonaClick.subscribeForPriceDrop(id, currentPrice, email, phone); |
Name | Type | Requirement | Description | |
---|---|---|---|---|
id | string | required | The product ID to notify of the product price drop the user will be subscribed. | |
currentPrice | number | required | The current product price. | |
string | optionally | The current user's Email.
| ||
phone | string | optionally | The current user's phone in full international format.
|
PersonaClick.subscribeForPriceDrop("100500", 146.99); |
PersonaClick.subscribeForPriceDrop("100500", 146.99, "john.doe@examplestore.com"); |
PersonaClick.subscribeForPriceDrop("100500", 146.99, null, "+4400114527199"); |
The method unsubscribes the user from an email notification of a product price decrease.
PersonaClick.unsubscribeForPriceDrop(params); |
Name | Type | Requirement | Description |
---|---|---|---|
params | array | required | Array with product IDs. See the example. |
PersonaClick.unsubscribeForPriceDrop(new String[] {"100500", "146", "12"}); |
PersonaClick.unsubscribeForPriceDrop(new String[] {}); // unsubscribe from all products |
Page Navigation Related Pages |