Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change range of ordernumbers?


JovanMcHellAngle

Recommended Posts

New orders that are made with new osCommerce installations start with the ID of 1.

 

This value can be reset so that new orders are assigned an ID from a specific starting range, for example from 1000.

 

Solution

 

The following SQL query needs to be executed with MySQL:

 

 

 

alter table osc_orders auto_increment = 1000;

 

 

 

The above query will assign an ID of 1000 to the next order made.

 

The ID can be set to any number, however as the orders_id field in the database is of type signed integer, the ID must exist in the following range:

 

 

-2147483648 to 2147483647

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...