Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Change the starting order number


10 replies to this topic

#1 thefragranceroom

  • Community Member
  • 6 posts
  • Real Name:Kim Wong
  • Gender:Female

Posted 18 January 2008, 04:13

does someone know how i can change the starting order number, so that it will be a four digit number? please help. thanks.

#2 Coopco

  • Community Member
  • 9,557 posts
  • Real Name:Leslie Cooper
  • Gender:Male
  • Location:Sea Lake, Victoria, Australia

Posted 18 January 2008, 04:24

View Postthefragranceroom, on Jan 18 2008, 03:13 PM, said:

does someone know how i can change the starting order number, so that it will be a four digit number? please help. thanks.
Make a dummy order in your shop. Then go to phpmyadmin and change the dummy order number to 1000. The next order will be 1001.

This has been discussed in the forums before.


The Coopco Underwear Shop



If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

#3 thefragranceroom

  • Community Member
  • 6 posts
  • Real Name:Kim Wong
  • Gender:Female

Posted 18 January 2008, 05:33

View PostCoopco, on Jan 17 2008, 08:24 PM, said:

Make a dummy order in your shop. Then go to phpmyadmin and change the dummy order number to 1000. The next order will be 1001.

This has been discussed in the forums before.

I'm not too familiar with phpmyadmin... where would i find the dummy order? Sorry. I appreciate the help.

#4 thefragranceroom

  • Community Member
  • 6 posts
  • Real Name:Kim Wong
  • Gender:Female

Posted 18 January 2008, 06:08

View Postthefragranceroom, on Jan 17 2008, 09:33 PM, said:

I'm not too familiar with phpmyadmin... where would i find the dummy order? Sorry. I appreciate the help.

i've tried looking through the old forums, but i'm a little confused. i know how to get to myphpadmin, but i don't know where to find the order_id. please help. thanks.

#5 Coopco

  • Community Member
  • 9,557 posts
  • Real Name:Leslie Cooper
  • Gender:Male
  • Location:Sea Lake, Victoria, Australia

Posted 18 January 2008, 06:08

View Postthefragranceroom, on Jan 18 2008, 04:33 PM, said:

I'm not too familiar with phpmyadmin... where would i find the dummy order? Sorry. I appreciate the help.
In the orders table.


The Coopco Underwear Shop



If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

#6 thefragranceroom

  • Community Member
  • 6 posts
  • Real Name:Kim Wong
  • Gender:Female

Posted 18 January 2008, 07:04

View PostCoopco, on Jan 17 2008, 10:08 PM, said:

In the orders table.

i changed the dummy order number; however, i tried placing another dummy order after that to test it and it went back to the original sequence.

#7 Coopco

  • Community Member
  • 9,557 posts
  • Real Name:Leslie Cooper
  • Gender:Male
  • Location:Sea Lake, Victoria, Australia

Posted 18 January 2008, 07:49

View Postthefragranceroom, on Jan 18 2008, 06:04 PM, said:

i changed the dummy order number; however, i tried placing another dummy order after that to test it and it went back to the original sequence.
Did you delete the first dummy order before making the second?


The Coopco Underwear Shop



If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

#8 itsjust

  • Community Member
  • 51 posts
  • Real Name:chris

Posted 10 August 2008, 11:15

find it here
http://www.oscommerce.info/kb/31

#9 ron123

  • Community Member
  • 12 posts
  • Real Name:ronron

Posted 13 December 2011, 11:56

Okay, that didn't work for me (osC 2.3.1). But I found a solution from elv1s and it works!!

elv1s, op 02 August 2005 - 01:40, zei:

Hallo,
in je PHPMYADMIN
volgende beveel ingeven.
alter table customers auto_increment=501
en voor faktuurtjes...
alter table orders auto_increment=501
waarbij 501 voor het getal staat vanaf waar je verder wilt gaan.
ps. altijd ff een backup maken!
gr.
kasper

In English:
Please backup!
when you want to start your customers at 501, paste in your database\sql: alter table customers auto_increment=501
when you want to start your ordernumbers at 501, paste in your database\sql: alter table orders auto_increment=501

Edited by ron123, 13 December 2011, 11:57.


#10 oscexp

  • Community Member
  • 20 posts
  • Real Name:Mr. Hao
  • Gender:Male
  • Location:GMT+8

Posted 04 January 2012, 16:09

using the code below to do it
insert into orders set orders_id = 1001;
delete from orders where orders_id = 1001;
run it in phpmyadmin
Then, place a new order and check the latest orders id, I guess it's 1002 now.
Good luck, budddy!
Have a problems in osCommerce shipping, payment, addons installation, customization or SEO?

Ready to give a hand at once... check my profile for help

#11 geoffreywalton

  • Community Sponsor
  • 7,729 posts
  • Real Name:Geoffrey Walton
  • Gender:Male
  • Location:Norfolk, UK (close to the centre of the universe)

Posted 04 January 2012, 23:19

The official solution

http://www.oscommerc...et+the+Order+ID

alter table orders auto_increment = 1000;

HTH

G

Edited by geoffreywalton, 04 January 2012, 23:20.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

Virus Threat Scanner
My Contributions
Basic install answers.
Click here for Contributions / Add Ons.
UK your site.
Site Move.
Basic design info.

For links mentioned in old answers that are no longer here follow this link Useful Threads.

If this post was useful, click the Like This button over there ======>>>>>.