Merging carts issue if VNext mode is disabled

Fixed in

EPiServer.Commerce 11.1.0

(Or a related package)

Created

Jun 30, 2017

Updated

Aug 14, 2017

Area

Core

State

Closed, Fixed and tested


Description

The method IOrderGroupExtensions.CopyLineItems(this IOrderGroup orderGroup, OrderForm sourceOrderForm, IOrderForm destinationOrderForm, IOrderGroupFactory orderGroupFactory) does not work correctly.

Expected: When copying a line item from a source form, it should check to see if a line item exists with the same code in the destination form.
Actual: A new line item is always created.

The current behavior might lead to an issue reported in Episerver World: http://world.episerver.com/forum/developer-forum/Episerver-Commerce/Thread-Container/2017/6/issue-with-merging-cart-after-login-if-sku-already-exists-in-users-cart/?pageIndex=1#reply