cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Shipping to multiple locations

0 Likes
621

Suppose that B2BCustomer 'C1' is attached to B2BUnit 'BX' and that 'BX' has delivery addresses 'A1' and 'A2'. Or suppose that 'C1' is attached to B2BUnits 'BX' and 'BY' (each with their own delivery addresses).

Now 'C1' creates a cart that has products 'P1' and 'P2' and the customer wants 'P1' delivered to 'A1', and 'P2' to 'A2'.

Is it possible to handle this with existing OOTB functionality or would it require much customization? And in general, what are the best practises with "delivery to multiple locations"? Any existing document/article on this topic? (I have searched but couldn't find anything as specific)

Accepted Solutions (1)

Accepted Solutions (1)

0 Likes

I guess I can answer myself, just to enjoy the exclusivity of being the only one knowing / happy-to-share / having-found the answer (which surprises me, given that it is a fairly well documented topic and not a rare scenario at all).
Anyhow, here it goes, for the benefit of others:

The short answer is: yes, it is possible to handle this with existing OOTB configuration.
This is achieved by splitting an order into multiple consignments.

Two articles:

An Order can be split into multiple Consignments using orderSplittingService.
orderSplittingService accepts a list of strategies. There are a few ones already in SAP Commerce:

 AbstractSplittingStrategy
  +-> SplitByAvailableCount         -> per entry.quantity
  +-> SplitByEntryDeliveryAddress   -> per entry.deliveryAddress
  +-> SplitByDeliveryMode           -> per entry.deliveryMode
  +-> SplitByNamedDeliveryDate      -> per entry.namedDeliveryDate
  +-> SplitToSingleConsignment      -> per entry.order

These strategies, if "configured/enabled", are called to evaluate each order entry. The default one is splitToSingleConsignment.

Answers (0)