Zen Cart Logo
Forums / General Questions / Changing order number

Changing order number

Locked

Views: 1,112

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
6 Jul 2009, 6:39 AM
#1
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Changing order number

Hi, after reading some threads about this I went to admin/store manager and reset my order number id. Problem is that it did not actually change. Does anyone know how do reset the order number manually?

6 Jul 2009, 10:49 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing order number

I went to admin/store manager and reset my order number id. Problem is that it did not actually change.
For what??
An order already placed???
If so, not an easy task as the info is written to the DB in many places and you would have to manually edit each of these to prevent actions associated with this order from breaking

6 Jul 2009, 1:07 PM
#3
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: Changing order number

not for existing orders, just for future ones. I have upgraded my site from an old one and need the order numbers to start from 1776.

6 Jul 2009, 1:11 PM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Changing order number

Did you follow what it says on the Store Mgr Page?

NOTE: Before updating the Current Order ID ...

Create a test order first. Then, using this Test Order ID complete the information below.
The New Order ID for the next Real Order should be entered as 1 less than the Order ID you wish to use.
Example: If you want your next Real Order ID to be 1225, enter the number 1224

WARNING: You can only reset the Order ID forward, and not backwards.
So if you set the Orders ID to 25, then change it again to 20, the next Orders ID will still be 26.

6 Jul 2009, 2:28 PM
#5
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: Changing order number

i created an order, which was number 2, and entered a much higher number to be applied to next order. The next order i processed came out as order number 3

6 Jul 2009, 2:29 PM
#6
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: Changing order number

I think I must be missing the point here somewhere lol

6 Jul 2009, 2:35 PM
#7
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: Changing order number

I have just tried again, Changing order number 3 to 1515 the next order came out as order number 4

6 Jul 2009, 2:51 PM
#8
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: Changing order number

Not sure how it sorted, but got it to work now. Many thanks for your earlier replies.

11 Aug 2010, 1:31 AM
#9
deviouscow avatar

deviouscow

New Zenner

Join Date:
May 2010
Posts:
29
Plugin Contributions:
0

Re: Changing order number

If you are wondering how to test if your order_id change worked :

Rather than having to do a test order to find out if your change worked, you can run the following SQL :

SHOW TABLE STATUS LIKE 'my_orders';

(Change "my_orders" to the name of your table - it will most likely be "orders" unless you set up your database with a table prefix configured in which case it would be '[prefix]_orders'

Running this sql query (in phpMyAdmin or similar database tool) will return you some data about your table - one of which is an "Auto Increment" value. This Auto Increment value that is returned is the number that your next order will be allocated.