If this is your first visit, check our documentation. To post, register or login.

Duplicate Orders During Upgrade

Started by rick5150 on 28 Jan 2013, 10:04 AM · Views: 702

Results 1 to 3 of 3
28 Jan 2013, 10:04 AM
#1
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Post #1 by rick5150

In the narrow window where I was rebuilding the site at a test location and still running the live store, I somehow had a customer find the test site and place an order near the same time another customer placed an order on the live site. The result is two orders with the same order number - number 130.

I have fixed this so it will not happen again, but is there some way I can renumber the latest order from 130 to 131 in the database? I have already reset the store numbering so that there is a gap in the numbers and the next order will be 132?

28 Jan 2013, 9:39 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

You'd have to go into ALL the orders_xxxxx tables and change the orders_id accordingly.
BE CAREFUL!!!!!!!!!!!!!

http://www.zen-cart.com/wiki/index.php/Developers_-_Database_Schema#Order_History

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Jan 2013, 11:25 PM
#3
rick5150 avatar

rick5150

Zen Follower

Join Date:
Dec 2010
Posts:
108
Plugin Contributions:
0

Post #3 by rick5150

Thank you. I only want to change order 130 to 131... If I have to mess with many records in the database to make this change, I will leave it alone though.