▶️ Using custom data overview

1: Apply custom data mapping in StoreConnect

  • In StoreConnect admin, go to: ConfigurationAdvancedData Mapping.

  • Click New to create a custom data mapping.

  • Fill in:

    • Object API Name: Get this by going to SetupObject Manager → search and open Contact.

    • Field API Name: Go to Fields & Relationships, find the desired field (e.g., Favorite_Color__c), and copy its API name.

  • Save the mapping record.

2: Modify or create a theme to use the data

  • Go to your Store Record in StoreConnect.

  • Either edit an existing theme or create a new theme:

    • Give it a name and save it.

    • Apply the theme to the store.

3: Add your Liquid code to the theme template

  • Inside the theme, go to TemplatesNew Snippet.

  • Create a new snippet for the account contact page:

    • Key: snippets/account/contact.
  • Copy the corresponding base snippet code from an existing StoreConnect theme.

Download the StoreConnect Base Theme: https://github.com/GetStoreConnect/base-theme

  • Modify the snippet to include the new field, e.g.:

    Favorite Color: {{ current_customer.data['Favorite_Color__c'] }}

  • Save the snippet.

4: Test

  • Go to the customer’s account page on the store frontend.

  • Refresh the page.

  • You should now see the Favorite Color field displayed, pulling live data from Salesforce.