Try our conversational search powered by Generative AI!

Overriding order number generation



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.

Dec 20, 2016 16:07

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.



Dec 20, 2016 16:46

Thanks alot! It worked as expected

Dec 21, 2016 8:28
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.