Skip to main content

Understanding variables

The Splio Mobile Wallets variables are used for the personalization of your Passes through update campaigns. 

To make your life easier, our solution allows you to manage Passes that will be updated automatically throughout their life cycle without any manual actions required from your end. All of your Pass' content (such as its default look and feel, geofenced messages settings, etc.), will be set up and available from Settings > Project throughout the project setup.

We, therefore, recommend that all of the content that will not change in the long term should be defined in Settings > Project (for example the color background, strip image, dynamic fields like the cardholder name, loyalty tier, etc.).

Update campaigns manage by default the banner image, a title, description (back of the Pass first), additional information (last), and the geo-fenced message.

As you might need to extend the level of personalization,
any content of the Pass may be changed through a campaign update by defining a variable in your project settings. We explain in the next section how this is set up in your organization.

Using variables

Here is a quick walkthrough step by step: 

1. Creating a variable in Settings > Projects > Variables (see the first image)

You can define different types of variables: 

  • Text: text fields

  • Image: for the strip image 

  • Rich text: for text blocks at the back of the Pass that might include HTML links. 

  • Checkbox: boolean that will be activated with the checkbox 

2. Calling the variable in the Project settings (see the second image)

Any variable created through the menu Settings > Variables must be used where it is needed in the Pass Template (Settings > Projects > Pass). 

{% if variables.eventSpecialSales is defined %}{{variables.eventSpecialSales}}{% else %}Splio Loyalty Card{% endif %}


3. Then you need to test it in a new campaign (see the third image)

💡Related resources: 

Creating update campaigns

What is the data needed for your Passes?

Pass design and content