kentico_radekm
-
2/9/2011 8:57:10 AM
RE:How do I programmatically change the order status?
Hello.
OrderStatusID is property of OrderInfo object.
You can get OrderInfo object via CMS.Ecommerce.OrderInfoProvider.GetOrderInfo method according to orderID. You can use CMS.Ecommerce.ECommerceContext.CurrentShoppingCart.OrderId to return current orderID and pass it to GetOrderInfo method.
When you have proper OrderInfo object, you can set its OrderStatusID property and call CMS.CMSEcommerce.OrderInfoProvider.SetOrderInfo(OrderInfo) on that object.
Best Regards, Radek Macalik
|