Hi I am struggling
- to simply add an order number into a shopify messenger email template that works in a flow
- find a developer who knows how to do it!!
Not returning the order number? what is wrong or is there a developer who can help with customisations of the email templates specific for an order
1 Like
Hey @BES_Managing_Directo, the variables available in Shopify Messaging templates are a bit limited. You can see the available options in our docs.
For example, order details are available on the customer object. Try using {{ customer.last_order.order_number }} in your template to access the customers most recent order number.
For finding a developer to help with further customizations, check out the Shopify Partner Directory.
yes that worked great - I did try finding someone in the shopify partner directory but they did not end up knowing how to do this. Also the information on the page did not show me this option
The last one, and I will be happy is returning an metafield for an order, eg I have
custom.eta
I have tried
Happy to use a developer as long as they know what they are talking about and not guessing.
These are the meta fields I am trying to return
Maybe this will work?
{{ customer.last_order.metafields.custom.eta }}
That is great yes it works, thank you so much, this will be so useful thank you.
Are we able to relate an email to a specific order rather than only the last order?
Generally, the Shopify Messaging app and the Send marketing email action were created primarily to send marketing emails. Because of this, I don’t think there is a method to reference a specific order in these templates directly, as they operate within the customer context rather than the order context.
Maybe some other action in Flow would work for you? Have you seen Send order invoice? This action triggers the standard emails, which are linked to the specific order so you wouldn’t have to rely on last_order.
To help us understand the use case better: what is the trigger you are currently using in Flow, and what exactly do you want to achieve with this specific email?
By the way, the formatted order number (e.g. #1001) can usually be accessed with name, not order_number. For example:
{{ customer.last_order.name }}
1 Like