Custom Email - Liquid variables

Custom Email - Liquid variables

Tokyorob
Excursionist
24 0 5

Hi All,

Probably been asked before but I have 2 people working on this and can't seem to get it to work.

 

I collect Meta data during the order process and need to make an email via flow that uses the meta data.

 

Eg

 

Dear {{customer.first_name{{ ,

Thank you for booking a class with us. We look forward to meeting {{ child_name }} for their {{ line_item.title {{ trial class on }} trial_class_date }}.

If you have any questions about your class, please do call or email. Unless specified, your class will be on the next available date. Please do read the information below which should answer any questions.

 

What am I doing wrong. Why is it impossible to do?

 

Test screenshot attached.

 

Replies 13 (13)

Dotsquares
Shopify Partner
433 28 55

Hi @Tokyorob 

You're on the right track using Shopify Flow or Shopify Email to include order metafields in a follow-up email—but there are a few key reasons:-


Incorrect Reference to Metafields
Line item loop might be required
Malformed Liquid Syntax

 

Make sure you’ve defined the metafields in your Shopify admin and that they’re available in the Order / Line Item scope.

Dotsquares Ltd


Problem Solved? ✔ Accept and Like solution to help future merchants.


Shopify Partner Directory | Trustpilot | Portfolio
Tokyorob
Excursionist
24 0 5

Hi Dot,

Thanks for this. I have forwarded to my designer. Fingers crosses.

 

Tokyorob
Excursionist
24 0 5

Hi Dotsquares,

Are you able to take a look? I have 2 people on this and they keep giving me reasons why it can't be done. I don't understand why meta data collected cannot be added to my emails. I am told Shopify has limited Liquid tags. Is there another option? Can I Use notification emails for now?

Tokyorob
Excursionist
24 0 5

Hi Dotsquares- I have been told -

You cannot currently use metafields in Shopify Email, here are the variables available: https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-email/create-email/c...

 

Any idea what CAN be done to sne a more customised email?

paul_n
Shopify Staff
1779 195 418

Brackets must surround a variable like this: {{ variable }}. Also those are not Flow variables as Flow doesn't use underscores. Click "Add a variable" and then choose the variable you want to use and Flow will insert the syntax for you

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
Tokyorob
Excursionist
24 0 5

My head hurts a little with this one. I will take a look. Thanks for your answer.

Tokyorob
Excursionist
24 0 5

Hi Paul,

Thanks for your help. Would you be able to walk me through. I have 3 people on thee job and they are either making forms or buying apps. I seem to have all the data I need.

Thanks, RobertScreenshot 2025-05-06 at 16.35.51.png

paul_n
Shopify Staff
1779 195 418

I don't know what you are asking

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
Tokyorob
Excursionist
24 0 5

I have 2 people working on it and they keep saying it can't be done bt them due to "Shopify email doesn't natively support adding these details to emails"

 

Can you take a look at my email flow or can i hire you to fix the problem?

Thanks,

Robert

paul_n
Shopify Staff
1779 195 418

Ah, you are asking about the Shopify Email app. There are multiple ways to send email, so your question wasn't clear previously. 

 

You cannot currently use metafields in Shopify Email, here are the variables available: https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-email/create-email/c...

 

 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.

PaulNewton
Shopify Partner
7746 679 1614

You can't use flow for this it doesn't support transactional emails, and marketing emails via shopify-email are limited in customizability.

So you'll have to find another approach for transactional emails yourself as forum rules prevent discussing solutions to merchant problems like this.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


Tokyorob
Excursionist
24 0 5

Hi Paul,

Thanks for your reply. As you can see, it's difficult to get a clear answer. Why are there rules preventing discussion? How do I fond out what to do?

Regards,

RObert

paul_n
Shopify Staff
1779 195 418

If we didn't have rules on apps posting in Flow's forum, every thread would not include answers but ads for apps vaguely in this same space. This was happening previously, leading to a poor experience. 

 

In this case, there are many apps that do transactional email and also have a Flow action. If you search for actions in Flow and uncheck "installed" apps, you will find them.

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.