djdeuce Posted July 10, 2013 Posted July 10, 2013 I'd like to raise the order number in my shop so the next orders will all sync up to the new larger number. I see there is multiple tables this number is on so I don't want to break it. :) Anyone know an easy way to change the order number? Thanks!
djdeuce Posted July 10, 2013 Author Posted July 10, 2013 Thanks Chris! But I just want to put a 1 in front of the number there now to make it in the thousands. I really don't want a huge unique number like this one. Do you know how to do that?
Jack_mcs Posted July 10, 2013 Posted July 10, 2013 @@djdeuce You need to place an order (unless you don't care about the last one being edited), edit the orders, orders_products, orders_status_history and orders_total and change the orders id in each to the number you want to start at. Then place a new order to update the auto updater and make sure it works. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
burt Posted July 11, 2013 Posted July 11, 2013 In phpmyadmin, do this: ALTER TABLE orders AUTO_INCREMENT = X Change X to the number of the number you want the orders to start at. Forget the older orders, all these will have low numbers.
myquestionone Posted July 11, 2013 Posted July 11, 2013 order numbers are the same as invoice numbers ? Signature: Apologies for my bad english - i am not a native speaker. Please forgive me. Thx and Cheers.
djdeuce Posted July 11, 2013 Author Posted July 11, 2013 thanks everyone! i used the auto increment update from burt and it worked perfectly :) for future people trying to figure this out just go to your phpmyadmin in cpanel, select the database and run this sql statement: ALTER TABLE orders AUTO_INCREMENT = X
Recommended Posts
Archived
This topic is now archived and is closed to further replies.