Jennyh Posted September 23, 2015 Share Posted September 23, 2015 I was hoping someone could help me out. I usually have a UK guy help me with OsCommerce things, however he has not responded to me in a few days and I'm running out of time. I’ve been Googling and can’t find any answers that actually help me. But, our company is in the process of being purchased. The new owners will have ownership on September 30th and we would like to roll our order numbers up to 200000 series (from a 100000 series) starting on October 1st. Is this something I can easily do? If so, where do I find it? I'm pretty good at doing these types of things myself as long as I have step by step instructions. (: Thank you in advance for all your help. Link to comment Share on other sites More sharing options...
♥bruyndoncx Posted September 23, 2015 Share Posted September 23, 2015 you'll have to use phpmyadmin or similar to use sql https://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html there is an alter statement to change the autoincrement value suggest you create a new table and try it out and see for yourself. KEEP CALM AND CARRY ON I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support). So if you are still here ? What are you waiting for ?! Find the most frequent unique errors to fix: grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt Link to comment Share on other sites More sharing options...
♥14steve14 Posted September 24, 2015 Share Posted September 24, 2015 I remember reading somewhere on these forums that if you create an invoice then go into your database using phpmyadmin or what ever you use, and alter that invoice/order number from say 10000 to 20000 the next one will be created as 20001 as it will be one increment higher. I may be wrong and totally imagining it though. REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
knifeman Posted September 24, 2015 Share Posted September 24, 2015 In older versions we did this: 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.SolutionThe following SQL query needs to be executed with MySQL:alter table 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 Does this not work anymore?? Or did I misunderstand the question? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.