X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   First Order ID modifed (https://forum.x-cart.com/showthread.php?t=6181)

TonyD 02-11-2005 10:15 AM

yes it does.

jorval 02-13-2005 06:17 PM

Alternative
 
Hi there

My first post here, so please dont kill me :)

Here is an alternative to increasing the order id.

Make a fake order and keep in mind the order id of this order (let it be '6').

Execute the MySQL patch thru the 'APPLY MYSQL PATCH' SECTION of the 'Upgrade/Patch' part of the 'Adminiatration' menu in admin area:

1. Scroll down the "Patch/Upgrade center" page and find the "Apply SQL patch" section.
2. Enter the patch text:
Code:

update xcart_orders set orderid=801219 where orderid=6;

into "Query(ies):" text area and push the "Apply" button.

So, the next order will be numbered as order #801220

Hope this is useful.

MythNReality 05-12-2005 01:16 PM

Re: First Order ID modifed
 
Quote:

Originally Posted by B00MER
Code:

ALTER TABLE xcart_orders AUTO_INCREMENT = 15000;

Enter this SQL query into Patch/Upgrade SQL Queries box and your next new order # will be 15001.

Happy X-Carting! ;)


Boomer,

Sorry for asking...Do I do this through the MYsqldatabase or apply patch?

thanks

markwhoo 05-12-2005 06:44 PM

Re: First Order ID modifed
 
Quote:

Originally Posted by MythNReality
Quote:

Originally Posted by B00MER
Code:

ALTER TABLE xcart_orders AUTO_INCREMENT = 15000;

Enter this SQL query into Patch/Upgrade SQL Queries box and your next new order # will be 15001.

Happy X-Carting! ;)


Boomer,

Sorry for asking...Do I do this through the MYsqldatabase or apply patch?

thanks


Look in the quote you had highlighted, that is the answer.

Admin:patch: enter data...


Quote:

Enter this SQL query into Patch/Upgrade SQL Queries box and your next new order # will be 15001.

MythNReality 06-21-2005 06:52 PM

Re: First Order ID modifed
 
Quote:

Originally Posted by markwhoo

Look in the quote you had highlighted, that is the answer.

Admin:patch: enter data...


Quote:

Enter this SQL query into Patch/Upgrade SQL Queries box and your next new order # will be 15001.


Duh...thanks, got that implemented, it's great! :lol:

aostuff 07-11-2005 04:35 PM

Works on 4.0.14
 
This is a great tip.. I just did it on my verison 4.0.14 site.

Nick

shan 07-12-2005 03:39 AM

Quote:

Originally Posted by TL408
Would this "Order ID" mod work for the newest version of X-cart, 4.0.10 ?

Thanks
-Tuan


yes

timbrrr 03-02-2006 05:33 PM

How about taking this one further, and figuring out a way to increase the order by x number of orders for each order? That way if a store was doing just a few sales a day, the returning customer wouldnt think he/she was the only customer.. something to think about for the people out there who are just starting out as we all have done

uiterwyk 03-03-2006 05:32 AM

If you are running MySQL 5.0 or above, they introduced a new varaible with that called auto_increment_increment that does just what you want. The MySQL command to change it is:
Code:

SET @@auto_increment_increment=10;
(Or whatever other value besides 10 you might want.

TL408 07-15-2006 12:32 PM

Anyone happen to know if this will still work in version 4.1.2 release?

Thanks
-Tuan


All times are GMT -8. The time now is 06:40 AM.

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