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
languagejs
themeFadeToGrey
PersonaClick.subscribeForBackInStock(id, email, phone);

Request parameters

NameTypeRequirementDescription
idstringrequiredThe product ID to notify of the product availability the user will be subscribed.
emailstring/nulloptionally

The current user's Email.

Note

Must be "null" if using a phone number.


phonestringoptionally

The current user's

Phone

phone in full international format.

Tip

A phone number in full international format may begin with a plus sign (+) followed by the country code, city (area) code, and phone number.


Examples of use

Code Block
languagejs
themeFadeToGrey
PersonaClick.subscribeForBackInStock("100500");

Code Block
languagejs
themeFadeToGrey
PersonaClick.subscribeForBackInStock("100500", "john.doe@examplestore.com");

Code Block
languagejs
themeFadeToGrey
PersonaClick.subscribeForBackInStock("100500", null, "+4400114527199");


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
languagejs
themeFadeToGrey
PersonaClick.unsubscribeForBackInStock(params);

Request parameters

NameTypeRequirementDescription
paramsarrayrequiredArray with product IDs. See the example.

Examples of use

Code Block
languagejs
themeFadeToGrey
PersonaClick.unsubscribeForBackInStock(new String[] {"100500", "146", "12"});

Code Block
languagejs
themeFadeToGrey
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
languagejs
themeFadeToGrey
PersonaClick.subscribeForPriceDrop(id, currentPrice, email, phone);

Request parameters

NameTypeRequirementDescription
idstringrequiredThe product ID to notify of the product price drop the user will be subscribed.
currentPricenumberrequiredThe current product price.
emailstringoptionally

The current user's Email.

Note

Must be "null" if using a phone number.


phonestringoptionally

The current user's

Phone

phone in full international format.

Tip

A phone number in full international format may begin with a plus sign (+) followed by the country code, city (area) code, and phone number.


Examples of use

Code Block
languagejs
themeFadeToGrey
PersonaClick.subscribeForPriceDrop("100500", 146.99);

Code Block
languagejs
themeFadeToGrey
PersonaClick.subscribeForPriceDrop("100500", 146.99, "john.doe@examplestore.com");

Code Block
languagejs
themeFadeToGrey
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
languagejs
themeFadeToGrey
PersonaClick.unsubscribeForPriceDrop(params);

Request parameters

NameTypeRequirementDescription
paramsarrayrequiredArray with product IDs. See the example.

Examples of use

Code Block
languagejs
themeFadeToGrey
PersonaClick.unsubscribeForPriceDrop(new String[] {"100500", "146", "12"});


Code Block
languagejs
themeFadeToGrey
PersonaClick.unsubscribeForPriceDrop(new String[] {}); // unsubscribe from all products



Column

Page Navigation

Table of Contents
maxLevel2
indent0px
stylenone




Related Pages

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
cqllabel = "triggers"