Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2015
    Posts
    191
    Plugin Contributions
    0

    Default Increase Order Number increment amount?

    Hi, I know how to manually set my next order number, but I'm wondering if I can change it to increment by 3 or something instead of 1 each time. i saw a thread on random numbers, but I'd like to achieve something more basic. Is there a piece of code where I can change a 1 to a 3 somewhere?

    Thanks

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,187
    Plugin Contributions
    63

    Default Re: Increase Order Number increment amount?

    Quote Originally Posted by CosmosK View Post
    Hi, I know how to manually set my next order number, but I'm wondering if I can change it to increment by 3 or something instead of 1 each time. i saw a thread on random numbers, but I'd like to achieve something more basic. Is there a piece of code where I can change a 1 to a 3 somewhere?

    Thanks
    That's a big deal to change as the incremental status stores the order info in your database. There really isn't a security to gain from this.
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  3. #3
    Join Date
    Jan 2015
    Posts
    191
    Plugin Contributions
    0

    Default Re: Increase Order Number increment amount?

    Quote Originally Posted by mprough View Post
    That's a big deal to change as the incremental status stores the order info in your database. There really isn't a security to gain from this.
    How is that a bigger deal than resetting the number manually? Why would the database care if there are skips?

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,281
    Plugin Contributions
    125

    Default Re: Increase Order Number increment amount?

    > Is there a piece of code where I can change a 1 to a 3 somewhere?

    It's not done in code; it's done by the database. I have read you can modify the auto_increment value but I have never done this myself. Be sure to make a backup first and verify that everything works as expected. *It would be a good idea to verify this on a test site before changing your live database. Be sure to test all relevant payment methods.*

    The syntax would be something like this:

    ALTER TABLE orders MODIFY COLUMN orders_id int(11) NOT NULL auto_increment=3;

    OR perhaps just

    ALTER TABLE orders auto_increment=3;

    I would not recommend doing this but it's your store.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Jan 2015
    Posts
    191
    Plugin Contributions
    0

    Default Re: Increase Order Number increment amount?

    Hmm, I was hoping it was an integer value somewhere in a php file. Maybe I'll wait, but thank you for the response. I'll use the time I would have spent attempting it to manually update the counter to keep my paranoia at bay. Thanks

 

 

Similar Threads

  1. Button to increment Sort Order?
    By snowy2007 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 27 Jun 2009, 06:46 PM
  2. Option Value Names - need to increase amount per page
    By beyre in forum Customization from the Admin
    Replies: 5
    Last Post: 4 Jun 2009, 11:20 PM
  3. Paypal amount diff from order amount
    By mmwilcox in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 28 Sep 2008, 08:45 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