If you are using the old cart system with the legacy API, you can have this
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
var newCart = _orderRepo.Create<ICart>(oldCart.CustomerId, oldCart.CartName);
newCart.MarketId = cart.MarketId;
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?