Hi,
I'm trying to create an order and empty the cart in a paragraphtemplate using razor. I can create the order but i'm not sure how to empty the cart after the order is created.
My code is something like this:
order.ShopID = "SHOP1";
order.CustomerName = name;
order.CustomerCompany = company;
order.Complete = true;
order.CompletedDate = DateTime.Now;
order.IsCart = false;
order.UpdateCartToOrder();
order.Save();
It creates the order. But I don't know how to (easiest way) to also empty the cart.
Any ideas?
Regards / Aki