Thread: Order numbers

Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2006
    Posts
    128
    Plugin Contributions
    0

    Default Order numbers

    Hello,

    I was wondering if anybody knew a way for me to have the next person to be order No. 7 without me having to change it back from 8 to 7 in the store admin everytime somebody ordered? Because I did a test order before the orders came into my store which turned out to be order #1 and forgot to reset all the products ordererd after I did it. So is there any way I can fix that?

    Thank you so much.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Order numbers

    No. You can set the order numbers "forward", but not "backward".
    You can do this in Admin->Tools->Store Manager.

    Maybe you want to reset it to 1007 instead?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2006
    Posts
    128
    Plugin Contributions
    0

    Default Re: Order numbers

    Darn. I typed in the wrong number and now I can't fix it...eek. Now I wish I didn't type that number in.

  4. #4
    Join Date
    Jan 2006
    Posts
    128
    Plugin Contributions
    0

    Default Re: Order numbers

    1 last question....

    If at the end of the month I was to reset all products ordered back to 0, would when somebody logs into there account lose the info on what they ordered in the past?

    Also, seeing as how I put the numbers forward way to where I wanted them, is there a way I can fix that? I know you can't set the numbers "backward", but is there a way I can fix that or would I have to reset all products ordered back to 0?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Order numbers

    Quote Originally Posted by bubblegumgoods View Post
    If at the end of the month I was to reset all products ordered back to 0, would when somebody logs into there account lose the info on what they ordered in the past?
    To reset it all back to 0, you'd have to totally delete all orders and all order history from your site. Thus, all customer orders will be gone.
    That's a pretty harsh loss of data.

    Quote Originally Posted by bubblegumgoods View Post
    Also, seeing as how I put the numbers forward way to where I wanted them, is there a way I can fix that? I know you can't set the numbers "backward", but is there a way I can fix that or would I have to reset all products ordered back to 0?
    You're messing with database automatic incrementing values when you do this. If you've already had orders to increase the number again, the resetting to a lower number will be moot. If you don't understand how databases work, you should not be playing in them. Nevertheless, to reset it back to "7", do this:
    1. Admin->Tools->Install SQL Patches
    2. Type this in the big text box, and click Send:
    Code:
    ALTER TABLE orders AUTO_INCREMENT = 7;
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 3 Jul 2006, 02:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg