Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I have a flow which goes like this Product> Trigger: New Order > Check if: the order includes items from a certain vendor > Action: Send internal email to relevant category manager with a copy of all line items in the order. However, is it possible to only include on the internal email the line items that are relevant to that category manager? For example, it would be great if any new orders containing items with the vendor 'produce' items to trigger an internal email to the produce team which lists all produce items in the order, preferably leaving all other non-produce items off this email?
Yes this should be possible using liquid when looping over the line items in the send email action. It would look something like:
{% for lineItems_item in order.lineItems %}
{% if lineItems_item.product.vendor == "some vendor" %}
[the liquid for adding the details for the lineitem]
{% endif %}
{% endfor %}
To learn more visit the Shopify Help Center or the Community Blog.
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025