Customizable email templates

There are three customer-facing emails that are sent by the Customer Fields app:

  • Customer account request
  • Customer account deny
  • Customer account invite

The first two emails are unique to Customer Fields, and you can customize the templates for these specific emails using the app admin by going to Settings > Email notifications > Email templates. These templates support both HTML and Liquid. You can also use Liquid variables in the email subjects for all three customer-facing emails. 👍

Note: You can customize the default subject and message for the Customer account invite email inside of Customer Fields, but the template for this particular email is controlled by the Shopify store.

Liquid code friendly

The app's template editor for the emails is completely Liquid friendly. This means you can use any popular control flow tags, iteration tags and filters that you need to dynamically render content in your ideal format & layout. We suggest using this documentation if you need a good reference on Liquid.

Use shop and customer objects

shop Liquid object

You can use the shop Liquid object to display certain details about the store in the email templates. Simply type in {{ shop in the template editor to see a list of the properties available. You can also use the following help article from Shopify to find more details on the different properties (aka attributes) for the shop object:

customer Liquid object

You can use the customer Liquid object to display certain details about the customer who submitted the form. This object supports all of the data columns in the app - including Shopify data columns and custom data columns.

Examples

If you want to display the value for a custom data column for "maturity_date" in the email body, along with the values for the customer's State/Province and Country, then you could use something like the following:

<p>Maturity Date: {{ customer.maturity_date | date: "%b %d, %Y" }}</p>
<p>Location: {{ customer.default_address.province }}, {{ customer.default_address.country }}</p>

Or perhaps you want to display the customer's first name in the email subject, along with the store's name. You can do so using something like this:

Hi {{ customer.first_name }}, your account for {{ shop.name }} has been approved!

Need some help with customizations to email templates?

Reach out to our support team and we'll help get your emails formatted the way you need!

Did this answer your question?