Custom Email - Liquid variables

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.

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.

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

Hi Dot,

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

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

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, Robert

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?

I don’t know what you are asking

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

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/custom-liquid

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?

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.

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

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.