HiI saw this post from back in 2012 (http://world.episerver.com/forum/developer-forum/Episerver-Commerce/Thread-Container/2012/9/Tracking-number--PO-Number/).But I can still, in EPiServer 10, not find a better way than searching through the
"OrderContext.Current.FindPurchaseOrders(parameters, searchOptions);" method or the getting purchase orders by its CustomerId and name
"orderRepository.Load(CustomerContext.Current.CurrentContactId, "Default");"Is there implemented a way to get an IPurchaseOrder by its OrderNumber / TrackingNumber or is it planned?Greetings
There is still no implemented way to load an order by the tracking number - technically the tracking number is not required to be unique in Episerver Commerce (even though it should). However this is a valid feature request and we will look into this to see if we can improve the situation.
Thanks for the reply. Is there any way to keep myself updated on the point?Greetings Mads Swensson
I will update it here when we have more information to share :)
This will be included in Commerce 10.2.2, which will be available later today (or probably tomorrow) :)
Fantastic news! Already looking forward to undoing my workaround! :)
Thanks for the awesome support! /Swensson
This bug fix is currently available in Update 145 (Commerce 10.2.2).