Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2007
    Location
    sunny Florida, USA
    Posts
    81
    Plugin Contributions
    0

    Default Changing the inital Customer Number generated

    HI all,
    I'm pretty sure this will be an easy one:

    How can I make my new ZC 1.3.8 install's customers start with a number other than 1?

    Thanks in advance,
    -Ray
    ++++++++++++++++
    Subtle as the 'b' in subtle.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Changing the inital Customer Number generated

    Customers, or orders?

  3. #3
    Join Date
    Mar 2007
    Location
    sunny Florida, USA
    Posts
    81
    Plugin Contributions
    0

    Default Re: Changing the inital Customer Number generated

    Customers. I do know how to change the order numbers if needed, but its customer's ID that I'd like to start with 1000 or something other than 1

    TIA,
    -Ray
    ++++++++++++++++
    Subtle as the 'b' in subtle.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,387
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Changing the inital Customer Number generated

    While it is NOT RECOMMENDED TO MESS WITH THESE SETTINGS,
    you can go to phpMyAdmin and change the auto_increment value on the customers table to a number you desire, and must be higher than any existing value already in the table.
    .

    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.

  5. #5
    Join Date
    Mar 2007
    Location
    sunny Florida, USA
    Posts
    81
    Plugin Contributions
    0

    Default Re: Changing the inital Customer Number generated

    Quote Originally Posted by DrByte View Post
    While it is NOT RECOMMENDED TO MESS WITH THESE SETTINGS,
    you can go to phpMyAdmin and change the auto_increment value on the customers table to a number you desire, and must be higher than any existing value already in the table.
    Thanks again, DrByte...I definitely understand your clear warning, but as we're using the customer number for something related to product licensing, I need it to be starting at a certain range.

    This is a spanking new install, so there's nothing that I can't undo quickly if it blows up :) Are there specific things to avoid, or is this simply an incrementing field?

    Thanks Again,
    -Ray
    ++++++++++++++++
    Subtle as the 'b' in subtle.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,387
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Changing the inital Customer Number generated

    It's an incrementing field. You give it a starting number higher than that of any existing record in the table, and new records start from that value ... hence the term "auto_increment".
    .

    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. Huge number of files being generated on mysql
    By James O in forum General Questions
    Replies: 5
    Last Post: 12 Dec 2010, 01:47 AM
  2. No 'Order Number' generated at end of ordering process.
    By surface8 in forum Basic Configuration
    Replies: 7
    Last Post: 6 Nov 2009, 12:48 AM
  3. Changing the order number?
    By bogie in forum General Questions
    Replies: 5
    Last Post: 15 Oct 2008, 03:32 AM
  4. How do I insert 2 randomly generated letters before order number?
    By Brent2 in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 15 Sep 2007, 01:03 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR