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 an email notification that the product is available.

Syntax and parameters

Code Block
languagejs
themeFadeToGrey
personaclick("subscribe_trigger", "product_available", params);

NameTypeRequirementDescription
paramsObjectrequiredObject with request parameters.

Request parameters

NameTypeRequirementDescription
iditemnumber/stringrequiredThe product ID to notify of the product availability the user will be subscribed.
emailstringrequiredThe current user's Email.
propertiesObjectoptionally

Additional product properties. The following are available:

  • fashion_size (number/string) - clothing size. The value of the parameter in the internal format of the store.

Example of use

Code Block
languagejs
themeFadeToGrey
personaclick("subscribe_trigger", "product_available", {
    iditem: "100500", 
    email: "john.doe@examplestore.com",
    properties: {
        fashion_size: "XL"
    }
});



Subscribe to the "Price Drop" trigger

Method Objective

The method subscribes the user to an email notification of a product price decrease.

Syntax and parameters

Code Block
languagejs
themeFadeToGrey
personaclick("subscribe_trigger", "product_price_decrease", params);


NameTypeRequirementDescription
paramsObjectrequiredObject with request parameters.

Request parameters

NameTypeRequirementDescription
iditemnumber/stringrequiredThe product ID to notify of the product price drop the user will be subscribed.
pricenumberrequiredThe current product price.
emailstringrequiredThe current user's Email.
propertiesObjectoptionally

Additional product properties. The following are available:

  • fashion_size (number/string) - clothing size. The value of the parameter in the internal format of the store.

Example of use

Code Block
languagejs
themeFadeToGrey
personaclick("subscribe_trigger", "product_price_decrease", {
    iditem: "100500", 
    price: 146.55, 
    email: "john.doe@examplestore.com",
    properties: {
        fashion_size: "XL"
    }
});


Table of Contents
maxLevel2
classpersonaclick-fixed-position