When a customer chooses to send products in one order to different addresses, you can
fulfill the order from multiple locations. The Split Order Fulfillment flows create a
fulfillment order for each address. You can also manually split fulfillment for an order.
Required Editions
-
Enable Split Shipping, and set up multiple delivery groups. See Enable Split
Shipping for B2B Stores.
-
In your browser, go to the commerce-on-lightning repo.
-
Follow the steps in the repo to deploy and activate the flows.
- Create OrderSummaryRoutingSchedule on OrderSummary event–This flow is triggered when
a customer places an order and generates an order summary. It creates an Order Summary
Routing Schedule record that includes the order summary ID, a status of Scheduled, and
the scheduled date and time set to Current Date/Time. The flow then triggers the
Create Fulfillment Orders on OrderSummaryRoutingSchedule flow.
- Create Fulfillment Orders on OrderSummaryRoutingSchedule–This flow is triggered by
the Create OrderSummaryRoutingSchedule on OrderSummary event flow. A user can also
manually trigger this flow by creating an Order Summary Routing Schedule record with a
Scheduled status. It triggers the Create FulFillment Orders from Order Summary
Subflow.
- Create Fulfillment Orders from Order Summary Subflow–This flow is triggered by the
CreateFulfillment Orders on OrderSummaryRoutingSchedule flow. It creates corresponding
FulfilmentOrder, FulfillmentOrderLineItem, FulfillmentOrderItemAdjustment,
FulfillmentOrderItemTax records for each delivery group in the order.