Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Resetting Customer ID and Order ID

Resetting Customer ID and Order ID

Locked

Views: 1,486

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
6 May 2008, 12:55 AM
#1
griff1324 avatar

griff1324

New Zenner

Join Date:
Feb 2008
Posts:
48
Plugin Contributions:
0

Resetting Customer ID and Order ID

I am ready to take my site live and would like to reset the customer ID to start back at 1. I would also like to reset the order id.

I have deleted all my test orders via the Admin panel (Customers - Orders) and Customers (Customers - Customers). However, when I create a new customer to test this the order id starts where it had left off prior to me deleting the customers.

Thanks for the help!

Chris

6 May 2008, 1:44 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Resetting Customer ID and Order ID

I'm constantly amazed at how many people ask for this, but then three weeks later come back and ask how to increase it to a much larger number so it doesn't look like their shop is "new" and that they've only been in business for a very short period of time.

The order number and customer number is calculated by the database using autoincrement logic. If you want to reset it, you'll need to go to the raw database controls and reset the autoincrement counters. This is not recommended unless you're familiar with database management.

Or, you could increase the number and start your order numbers at "100" or something, using the Admin->Tools->Store Manager option for that. You'll need to place another test order to do it though.

6 May 2008, 2:22 AM
#3
griff1324 avatar

griff1324

New Zenner

Join Date:
Feb 2008
Posts:
48
Plugin Contributions:
0

Re: Resetting Customer ID and Order ID

DrByte,

I found a response of yours here that will do the trick!

http://www.zen-cart.com/forum/showthread.php?t=76734&highlight=reset+orders

Once I get everything reset, I will be creating a test account with a test order. I will then set my order numbers to start at 101.

Thanks,

Chris