JovanMcHellAngle Posted February 25, 2005 Share Posted February 25, 2005 Hi! I would like OsCommerce to start with ordernumber 6100 instead of 1. Ist it possible? Where in the tables can i change it? Best regards Johan Link to comment Share on other sites More sharing options...
knifeman Posted February 25, 2005 Share Posted February 25, 2005 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 More sharing options...
Jeremy at oddly enough Posted February 26, 2005 Share Posted February 26, 2005 In the orders table of your database, change an order id (any one) to 6099. The next order that comes through will be 6100. Jeremy UPDATE orders SET orders_id='6099' WHERE orders_id='1'; ought to do the trick. Jeremy Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.