Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi,
I am looking to tag the customer with the product titles in the order they just created. But it only allows me to do the first one because i can only add this to the tag field, {{order.lineItems.title}}. I cannot find where to add in the loop. I have read you can do it, but i cant seem to find where.
This is where I read it: https://help.shopify.com/en/manual/shopify-plus/flow/examples#template-variables-and-liquid-examples
Below is what the flow looks like, its very simple, it just needs that loop.
Any help is greatly appreciated.
Jordan
Have you tried using an inline Liquid loop in there? I'm not that familiar with Shopify flow but the docs say it accepts liquid ("Text fields that support template variables also support for loops and the forloop object."), so maybe you could use this:
{% for item in order.lineItems %}{{ item.title}}{% endfor %}
Or, if you need to separate them, maybe you could try adding a comma:
{% for item in order.lineItems %}{{ item.title}},{% endfor %}
If you aren't able to do it with Flow and need something more powerful / customizable I have an app that can do stuff like this (Order Automator). For your case it seems like you could do it right in Shopify Flow though if you can get those loops working, so I'd give it a try first with the liquid loops.
Thanks for your reply, but the tag field allows you to type a tag and then it puts it below, so i could add multiple tags, they just cant be looped.... see screenshot, after i entered what you sent and hit enter this is what it looks like...
Weird error, because the forloop looks closed to me... hmmm, what about that </>, maybe you can click on that to open up a code view, so you can use that loop code?
When you click that it opens up the variable action or condition selector....see screenshot of how i originally got the line item title into my flow. Do you have access to flow that you could try?
Ok, hmm ya I'm not sure by that screenshot. I don't have a Shopify Flow installation to test but I wouldn't mind checking it out and see if I can figure this out, if you want me to try on yours send me a message with your store url and I'll send a collaborator request and see if I can identify it. I won't make any changes, I'll just cruise around to see if I can identify how to achieve what you're looking to do, then will pass it on.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024