I want to have a page where I show order details for order that has been just placed. I can get basket which seems to have same information except for order number, how do I get order number?
In a normal uCommerce checkout flow, orders doesn't get a order-number before the paymentprocess is complete, so basket (not completed orders) will miss that property.
If you are looking for "order that has been just placed", you would need to filter the order where order.OrderStatus.OrderStatusId == OrderStatus.Get((int)OrderStatusCode.NewOrder)
and some sort of date range.
Get order number before or after order is placed
Hi,
I want to have a page where I show order details for order that has been just placed. I can get basket which seems to have same information except for order number, how do I get order number?
Hi
In a normal uCommerce checkout flow, orders doesn't get a order-number before the paymentprocess is complete, so basket (not completed orders) will miss that property. If you are looking for "order that has been just placed", you would need to filter the order where
order.OrderStatus.OrderStatusId == OrderStatus.Get((int)OrderStatusCode.NewOrder)
and some sort of date range.Hi Nickolaj,
Thank you for response. Will probably just use this hack :)
is working on a reply...