Liquid is a flexible templating language that allows you to create highly customized and personalized emails by merging in customer, order, product, shop, and other information. For an overview of the basics of liquid see our article What is Liquid? And why is it magic?

The following shop data can be merged into your emails:

shop.address

This contains the shop address

shop.address.address1

Returns the shop's address1 line:

123 Main St.

shop.address.address2

Returns the shop's address2 line:

P.O. Box 456

shop.address.city

Returns the city in the shop's address:

Boston

shop.address.province_code

Returns an abbreviated form of the state or province in the shop's address:

MA

shop.address.zip

Returns the ZIP or postal code in the shop's address:

01111

shop.address.country_code

Returns the two letter country code in the shop's address:

US

shop.address.full

Returns the shop's full address:

123 Main St, PO Box 456, Boston, MA, 01111, US

shop.currency

Returns the store currency (in ISO 4217 format):

USD

shop.domain

Returns the primary domain of the shop:

example.com

shop.email

Returns the shop's email address:

john@example.com

shop.locale

Returns the language locale that the store is currently displayed in:

en

shop.name

Returns the shop's name:

Acme, Inc

shop.phone

Returns the shop's phone number:

555-555-5555

shop.taxes_included

Returns true if taxes are included in your products' prices. Otherwise, returns false.

shop.logo.src

Returns the URL for the shop's logo.

shop.social_profiles

Returns an array of your shop's social profiles. You can set these profiles in your store's Brand settings within Jilt.
Example:

{% for social_profile in shop.social_profiles %}
  <a href="{{ social_profile.url }}" title="{{ social_profile.name }}">
    <img src="{{ social_profile.standard_icon_url }}" />
  </a>
{% endfor %}

Shows:

<a href="https://facebook.com/jilt" title="facebook">
  <img src="https://jilt-media-library-staging.imgix.net/images/3/963c47bc-4a49-493a-a112-96f8c1be6bd6?resize=crop&w=48&h=48" />
</a>

social_profile.name

Returns the social profile's name:

facebook

social_profile.url

Returns the social profile's url:

https://facebook.com/jilt

social_profile.standard_icon_url

Returns the URL to the social profile's standard icon:

https://jilt-media-library-staging.imgix.net/images/3/963c47bc-4a49-493a-a112-96f8c1be6bd6?resize=crop&w=48&h=48

social_profile.square_icon_url

Returns the URL to the social profile's square icon:

https://jilt-media-library-staging.imgix.net/images/3/e8ec4480-8b1e-44bf-8b59-3281d68d48df?resize=crop&w=48&h=48

Can't find what you need?

Can we improve your life by adding support for merging in additional shop data? Let us know!

Did this answer your question?