Automate Original Order Fulfillment for Merged Orders
Automatically fulfill all original orders when a single merged order is marked as fulfilled, streamlining your fulfillment process.
The Problem
Manually tracking and fulfilling multiple original orders after merging them into a single shipment is a time sink. It's easy to miss an original order, leading to customer confusion, delayed deliveries, and extra support tickets. This manual overhead adds labor costs and risks impacting your crucial customer experience.
What This Automation Solves
This Shopify Flow automation eliminates the manual hassle by automatically fulfilling all associated original orders. When a merged order is fulfilled, Flow uses a condition to identify it, extracts the original order IDs, and then automatically marks their respective fulfillment orders as fulfilled, ensuring no order is left behind.
When to Use This Automation
- You use a third-party app or custom process to merge multiple customer orders into a single shipment.
- You want to ensure all components of a merged order are marked as fulfilled simultaneously.
- You need to maintain accurate fulfillment statuses for original orders while optimizing shipping costs with merged parcels.
Workflow
Trigger
Step 1This workflow starts when an order is fulfilled
Condition
Step 2Is this is a merged order? (whether it was placed by Mergify)
Action
Step 3Extract the original order ids from the merged order metafields
Action
Step 4Get original orders data using the query from previous step
Loop
Step 5iterate through original orders
Loop
Step 6iterate through fulfillment orders in each original order
Action
Step 7Fulfill the original orders' fulfillment orders
Step-by-Step Setup
- 1
Configure your Mergify (or similar) app to store original order IDs in a merged order's metafield.
- 2
Set the 'Order fulfilled' trigger to start the workflow.
- 3
Add a condition to check if the fulfilled order's metafield indicates it's a merged order.
- 4
Implement 'Run code' to extract original order IDs from the metafield.
- 5
Use a loop to iterate through original orders and their fulfillment orders, then 'Mark a fulfillment order as fulfilled' for each.
- 6
Test thoroughly with a dummy merged order before activating.
Related Questions
- How do I identify a merged order in Shopify Flow?
- You'll typically identify a merged order using a custom metafield added by your merging app (e.g., 'mergify.is_merged' or 'mergify.original_order_ids'). The Flow condition step will check for the presence or specific value of this metafield.
- Can this automation fulfill partial original orders?
- This automation is designed to fulfill all fulfillment orders associated with the original orders once the merged order is fulfilled. If an original order has multiple fulfillment orders, all will be marked complete. Partial fulfillment of an original order based on the merged order isn't directly supported by this specific Flow.
- What if an original order is already fulfilled?
- The 'Mark a fulfillment order as fulfilled' action is idempotent. If a fulfillment order is already fulfilled, attempting to fulfill it again won't cause an error, but it won't change its status. The Flow will simply proceed without issue for already fulfilled items.
- Do I need a specific app to merge orders for this Flow to work?
- Yes, this Flow assumes you're using an app or custom solution (like Mergify) that creates and manages merged orders, specifically by storing the original order IDs in metafields on the merged order. Without that data, the Flow can't identify or process the original orders.
Recommended Tools & Apps
Launch this automation
Open Shopify Flow and use this page as your setup blueprint.
Merchant Insight
When setting up your merging app, ensure it consistently writes the original order IDs into a standardized metafield on the merged order. This consistency is crucial for your Flow's 'Run code' step to reliably extract the data and avoid err
Related Automations
Automate Tagging for All International Shopify Orders
Automatically identifies and tags every order shipping outside your home country, streamlining fulfillment and customer service processes.
How to Automatically Tag Wholesale Orders for Fulfillment
Automatically tags orders from your wholesale customers, streamlining fulfillment and reporting without manual checks.
How to Alert Fulfillment to Gift Orders Automatically
Automatically notifies your fulfillment team via email whenever a new order is marked as a gift, ensuring special handling.