Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Subscribe to the "Back in Stock" trigger
Method Objective
The method subscribes the user to the notifications that the product is available.
Syntax and parameters
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.subscribeForBackInStock(id, properties, email, phone); |
Request parameters
Name | Type | Requirement | Description | ||
---|---|---|---|---|---|
id | string | required | The product ID to notify of the product availability the user will be subscribed. | ||
properties | JSONObject/null | optionally | Additional product properties. The following are available:
Check the example below. | ||
string/null | optionally | The current user's Email.
| |||
phone | string/null | optionally | The current user's phone in full international format.
|
Examples of use
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.subscribeForBackInStock("100500"); |
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.subscribeForBackInStock("100500", "john.doe@examplestore.com"); |
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.subscribeForBackInStock("100500", null, "+4400114527199"); |
Code Block | ||||
---|---|---|---|---|
| ||||
JSONObject properties = new JSONObject(); properties.put("fashion_size", "XL"); PersonaClick.subscribeForBackInStock("100500", properties, "john.doe@examplestore.com", null, null); |
Unsubscribe from the "Back in Stock" trigger
Method Objective
The method unsubscribes the user from the notification that the product is available.
Syntax and parameters
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.unsubscribeForBackInStock(params); |
Request parameters
Name | Type | Requirement | Description |
---|---|---|---|
params | array | required | Array with product IDs. See the example. |
Examples of use
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.unsubscribeForBackInStock(new String[] {"100500", "146", "12"}); |
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.unsubscribeForBackInStock(new String[] {}); // unsubscribe from all products |
Subscribe to the "Price Drop" trigger
Method Objective
The method subscribes the user to the notifications of a product price decrease.
Syntax and parameters
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.subscribeForPriceDrop(id, currentPrice, email, phone); |
Request parameters
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.
|
Examples of use
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.subscribeForPriceDrop("100500", 146.99); |
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.subscribeForPriceDrop("100500", 146.99, "john.doe@examplestore.com"); |
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.subscribeForPriceDrop("100500", 146.99, null, "+4400114527199"); |
Unsubscribe from the "Price Drop" trigger
Method Objective
The method unsubscribes the user from an email notification of a product price decrease.
Syntax and parameters
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.unsubscribeForPriceDrop(params); |
Request parameters
Name | Type | Requirement | Description |
---|---|---|---|
params | array | required | Array with product IDs. See the example. |
Examples of use
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.unsubscribeForPriceDrop(new String[] {"100500", "146", "12"}); |
Code Block | ||||
---|---|---|---|---|
| ||||
PersonaClick.unsubscribeForPriceDrop(new String[] {}); // unsubscribe from all products |
Column | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Page Navigation
Related Pages
|