November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
If you are using the old cart system with the legacy API, you can have this
newCart.Add(oldCart);
which copies everything to the new cart.
If you are using the new API there is no built in API to do that, but you can just add item by item
Now the question is what
How about
var newCart = _orderRepo.Create<ICart>(oldCart.CustomerId, oldCart.CartName);
newCart.MarketId = cart.MarketId;
newCart.CopyFrom(oldCart, _orderGroupFactory);
Save(newCart);
I am trying to figure out what is the best way to copy content from cart A to a new cart B.
I have a requirement from the customer, that everytime a Dealer clicks Save.
The cart should be saved and a new cart, with new cart ID should be created but it should contain everything that the old cart contains.
So what is the best way to "clone" a cart in EPiCom 11?