hi there
I am trying to create an flow for Shopify Email where once the user places the order and as soon as the order is fulfilled one email will go requesting product review from the user who has placed the order also the email should have the list of items ordered so that the customer can get the link of the product for which the review is being request.
i am using product reviews app for gathering reviews
for email marketing i am using shopify email
just need help in understanding which flow to create while setting up this manual template for automated email
Basically, I’m trying to build a flow triggered by the delivery event. This part it’s okay and works. But my issue is with the email template. I know from Flow I can add a send event of a Shopify email template, so I tried to create a template with two main issues :
I don’t understand how can set the order id as an input of the module "send email " inside the flow, it seems the input is the customer.
If in the email template with the custom code I’m adding the lines with this variable, it doesn’t work. As an example: {% for line in subtotal_line_items %} . I’m getting Unknown Liquid error. But I have also Unknown Liquid for instance using {{ customer.first_name}} .
Maybe I’m missing something. Using the same liquid variables inside the Notification templates they work well.
So, I also tried to use CTRL + SPACE inside the template and I was suggested to use {{ data.customer.orders }}. This variable has been recognized by the system but when I send the email to myself (as a Test segment with 3 orders) the order section is blank.
Could you suggest to me how to access orders and line items with the correct liquid tag for the marketing emails? Cause I didn’t find it in the documentation link I attached here.
Yes, already checked. It’s the code I sent above: {% for line in subtotal_line_items %}. this code works on notification emails, from settings → Notification. But it doesn’t work on marketing email. There is no reference in the documentation link and in the end it seems not possible to trigger a notification email from flows, or automation. I don’t want to believe there is no possibility to do this as a custom code.
Btw, thank you for your support, I will open a support ticket to ask for Shopify support.