{"title":"▶️ Using custom data overview","slug":"how-to-use-custom-data","url":"https://support.storeconnect.com/articles/how-to-use-custom-data","url_markdown":"https://support.storeconnect.com/articles/how-to-use-custom-data.md","subtitle":null,"summary":"Map custom Salesforce fields to your storefront using data mappings, then display them on pages with Liquid code in theme snippets.","type":"Videos_Tutorials","video_url":"https://vimeo.com/1197571155?fl=sv\u0026fe=ci","keywords":null,"last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## 1: Apply custom data mapping in StoreConnect\n\n-   In StoreConnect admin, go to: **Configuration** → **Advanced** → **Data Mapping**.\n\n-   Click **New** to create a custom data mapping.\n\n-   Fill in:\n\n    -   **Object API Name**: Get this by going to **Setup** → **Object Manager** → search and open **Contact**.\n\n    -   **Field API Name**: Go to **Fields \u0026 Relationships**, find the desired field (e.g., *Favorite\\_Color\\_\\_c*), and copy its API name.\n\n-   Save the mapping record.\n\n\n## 2: Modify or create a theme to use the data\n\n-   Go to your **Store Record** in StoreConnect.\n\n-   Either edit an existing theme or create a **new theme**:\n\n    -   Give it a name and **save** it.\n\n    -   Apply the theme to the store.\n\n\n## 3: Add your Liquid code to the theme template\n\n-   Inside the theme, go to **Templates** → **New Snippet**.\n\n-   Create a new snippet for the account contact page:\n\n    -   Key: `snippets/account/contact`.\n\n-   Copy the corresponding base snippet code from an existing StoreConnect theme.\n\n\nDownload the StoreConnect Base Theme: [https://github.com/GetStoreConnect/base-theme](https://github.com/GetStoreConnect/base-theme)\n\n-   Modify the snippet to include the new field, e.g.:\n\n    `Favorite Color: {{ current_customer.data['Favorite_Color__c'] }}`\n\n-   Save the snippet.\n\n\n## 4: Test\n\n-   Go to the customer’s **account page** on the store frontend.\n\n-   **Refresh** the page.\n\n-   You should now see the **Favorite Color** field displayed, pulling live data from Salesforce."}