on ‎2019 Mar 18 1:35 PM
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)
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.