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?
You can view our complete liquid resource for Jilt here, and see shop liquid data in particular here.
Here are a few examples of how you can use the shop object to insert content into your subject lines or emails.
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:
shop.name
Returns the shop's name:
Acme, Inc
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>
Can't find what you need?
Can we improve your life by adding support for merging in additional shop data? Let us know!