The standard process for merging orders involves OrderManager.mergeOrders() calling CommerceItemManager.mergeOrdersCopyCommerceItem() to copy existing commerce items from a source order to a destination order, and calling ShippingGroupManager.mergeOrdersCopyShippingGroup to copy existing shipping groups from the source order to the destination order. In the ShippingGroupManager, mergeOrdersCopyShippingGroup, in turn, calls either mergeOrdersCopyHardgoodShippingGroup or mergeOrdersCopyElectronicShippingGroup, depending on the type of the shipping group.

However, if you’ve extended certain ATG Commerce classes to store additional information, you must change the methods used for merging orders so the additional information is copied to the destination order when merging orders.

 
loading table of contents...