cancel
Showing results for 
Search instead for 
Did you mean: 

Contact and product data references in the Emarsys scripting language

dvonglobus
Explorer
0 Kudos
228

Hello,

I'm quite confused going through the Emarsys scripting language documentation.

How do I reference products and contacts? In terms of products, where do I store the product data in Emarsys?

Thanks,

David V.

Accepted Solutions (0)

Answers (1)

Answers (1)

BorisCH
Newcomer
0 Kudos

If it is still relevant,

For contacts, it is simply {{ contact.fieldnumber }}.
Ex. {{contact.1}} is the first name.
{{contact.37|required}} will be the mobile number and will send the message only if the value isn't empty.

You can know the field number from Management>Field Editor 

For products, it depends on the source. If it is from a Webextend cart event or Personalization Rules catalogue. It changes the opening {% foreach %} statement.
It is a good idea to take example from the Abandoned Cart block in the master template. 

Hope it helps