Format of the Ordernumber

Posted by Community Admin on 05-Aug-2018 18:25

Format of the Ordernumber

All Replies

Posted by Community Admin on 02-Sep-2013 00:00

Hi support,

Is it possible to change the format of the Ordernumber, so that it can be part of a certain sequence?

Kind regards,
Daniel

Posted by Community Admin on 05-Sep-2013 00:00

Hi Daniel,

Currently the order number is always an Integer number.
You can specify where the order number can start from (for example if you are moving old site to sitefinity ecommerce you can specify that your orders will start from 1000 instead of 0. But that's all you can do.

Also keep in mind the maximum for OrderNumbers is 2,147,483,647 currently.

In order to specify where the next order number should start from you need to update your SQL database there is a table sf_ec_next_order_number which is used like a SEQUENCE to return the next order number. So you have to execute an SQL query like :

UPDATE sf_ec_next_order_number SET next=1000;

It is not possible to use a custom pattern for order numbers.

If you need future assistance let me know. 

Regards,
Nayden Gochev
Telerik
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed