X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Change Order ID (https://forum.x-cart.com/showthread.php?t=4709)

midori 10-10-2003 01:58 PM

Change Order ID
 
Is there a way to change the Order ID number so that my first customer doesn't get "Order ID #1"?

Thanks!
-Midori

DogByteMan 10-10-2003 02:49 PM

Go to your MySQL control panel Select browse xcart_orders then edit order ID 1 to anything you want.

bluecat 10-10-2003 06:57 PM

What if you have about 30 orders but want to change that? Can I just change the last entry to say 1322 for example without messing up my database?

DogByteMan 10-10-2003 07:01 PM

I believe so. If I'm not mistaken the Order ID is auto indexed using the last entry. All entries before that should remain unchanged.

bluecat 10-10-2003 07:04 PM

Let me ask this (as I get scared tinkering with my database), if it "doesn't" work, can it be easily corrected by changing the number back to 30 for example?

DogByteMan 10-10-2003 07:06 PM

Here is the only way to do it

BACKUP YOUR DATABASE!

Then try it.... If it does not work....

RESTORE YOUR BACKUP DATABASE!

bluecat 10-10-2003 07:10 PM

I guess I should of thought of that, lol. Thanks. :roll:

DogByteMan 10-10-2003 07:15 PM

Also change the same value in xcart_order_details

I don't see a way to just change next value, but there may be a way.

midori 10-13-2003 10:31 AM

Thanks for the help! I should've figured that out on my own. :oops:

-Midori

midori 10-15-2003 10:50 AM

Wait a second...what do I do if I don't have a MySQL control panel???

groovico 10-15-2003 12:30 PM

Look through the email tpl/s you can just add whatever you want infront of the productID part.

You need to change all the subject lines and places where it mentions the order ID.

Doing it in the tpl's means it doesn't affect the real numbers in the database.

You can also change this in the order history display templates too.

funkydunk 10-15-2003 12:56 PM

just run this patch in admin:

Code:

INSERT INTO `xcart_orders` VALUES (
'12345', '', '0.00', '0.00', '', '0.00', '0.00', '', '0.00', '0', '', '0.00', '0.00', '0.00', '0.00', '0.00', 'G', '0', 'Q', '', 'N', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'US', ''
);


where 12345 is replaced by the number of your choice.

The next order id produced by the system will be 12346

Once you have had an order you can delete this entry by running the following patch:

Code:

DELETE FROM `xcart_order` WHERE orderid = '12345'

midori 10-15-2003 01:05 PM

Great! Thanks to you both for your help. I really appreciate it!

-Midori

concepts 11-16-2003 11:48 AM

I just went through PHPadmin, found the last order and changed the value. Since it is on auto appending, it goes to the next value after the last one.

30000 = 30001 next

bluecat 11-17-2003 03:07 PM

sounds good. :)


All times are GMT -8. The time now is 03:09 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.