Try our conversational search powered by Generative AI!

Overriding order number generation

Vote:
 

Hi

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.

http://world.episerver.com/documentation/developer-guides/commerce/orders/order-management-legacy/Changing-order-number-sequence/

#173313
Dec 20, 2016 16:07
Vote:
 

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.

Regards,

/Q

#173314
Dec 20, 2016 16:46
Vote:
 

Thanks alot! It worked as expected

#173334
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.