Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi Shopify community,
I need help with my Flow automation that sends order emails to suppliers.
Currently, when an order is placed, my Flow checks for supplier metafields and sends order details to the appropriate suppliers. I recently added code to show shipping methods in these emails:
Selected Shipping Methods:<br>
{% for shipping_line in order.shippingLines %}
- {{ shipping_line.title }} <br>
{% endfor %}
The problem is this displays ALL shipping methods to EVERY supplier. For example, if an order has two products from different suppliers (X and Y), both suppliers see both shipping methods in their emails, which is confusing.
Is there a way to show only the relevant shipping method for each supplier's products? Can I associate specific shipping methods with specific products in the order?
We're using product metafields to identify suppliers and have recently updated our shipping profiles with a checkout customization function.
Any suggestions would be appreciated!
You might be able to use order / fulfillmentOrders or order / fulfillments instead. If you use either, just know that they are not available when an order is created. Fulfillment orders are populated after ~ 5s. You can add a "wait" step after the trigger to give them time to show up. Look at the "deliveryMethod" fields on the fulfillment order to see if anything there helps.
Order / Fulfillments timing depend on when fulfillment starts happening.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025