We are currently using EPiServer Commerce 10 and want to override the default order number generation.
Since the post below is marked as legacy, and the current implementation of Cart is being phased out, I would like to know if there is a newer approach to the issue.
If you are using the concrete class approach (PurchaseOrder, OrderForm, LineItem, CartHelper, ...) then it should still work as normal.
Things will be a bit different if you are using the new abstraction approach (IOrderGroup, IOrderForm, ILineItem etc.) - which is the newer way and the way forward - You can simply set the IPurchaseOrder.OrderNumber and it should work for you.
Thanks alot! It worked as expected