Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    May 2006
    Posts
    62
    Plugin Contributions
    0

    Default Re: Increase Order Numbers by Three

    Actually, I think there is an argument to be made for changing the order numbers so it doesn't look like you've JUST opened your store, and the customer is placing order NUMBER ONE!

    What I did, is enter a number like 703909 as a starting number. The next order number will be 703910, then 703911, etc. It doesn't then look like you're just starting out. I used 7 for 2007, and 03 to indicate March then just a random number on the end to make it look like I've already processed a lot of orders when, in fact, I'm just starting.

    As a reminder, you get to this by going to ADMIN/TOOLS/STORE MANAGER, and then entering a new number in the box called Reset Current Order ID, then click "RESET"


  2. #12
    Join Date
    Oct 2006
    Posts
    60
    Plugin Contributions
    0

    Default Re: Increase Order Numbers by Three

    Why are you all scaring the child.

    This is definately doable without breaking the database or zencart.

    1) You need to modify the MySQL DB so that ORDER_ID is not auto-incementing field and just a primary key.
    2) Create a BEFORE_INSERT trigger that generates a custom ORDER_ID based on your rule, i.e max(order_id) + 3 or whatever and then complete the insert.
    3) Ta da! everything should work without breaking anything.

    How to write your own trigger... read MYSQL documentation at http://dev.mysql.com/doc/refman/5.0/en/triggers.html

    Arios,
    Jeff.

    Send gifts to loved ones in Pakistan at http://pakistangiftsemporium.com

  3. #13
    Join Date
    Mar 2006
    Location
    St. Louis area
    Posts
    208
    Plugin Contributions
    0

    Default Re: Increase Order Numbers by Three

    You are over simplifying this.

    The trigger needs to be the confirm order button. The order number needs to be sent to the payment gateway and entered in more than one table.

    Yes, it could be done. I would write it if someone paid me enough money for my time and waived any liability against me if the SQL database broke or the primary keys got out of sync.

  4. #14
    Join Date
    Oct 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Increase Order Numbers by Three

    Hi !

    This is a strange problem for me too.
    The concurrency can spy our sales quantity.No chance to change the order ID to randomly order ID?( In another shops isin't probelm like ecommerce or virtuemart. ).

    Thanks

  5. #15
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Increase Order Numbers by Three

    no this number can not be made random,
    its auto incrementing,
    if your worried about low order numbers you can change the starting number of invoices, to a higher number,
    this is done in admin -> tools -> manager
    Zen cart PCI compliant Hosting

  6. #16
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Increase Order Numbers by Three

    Quote Originally Posted by davee View Post
    This is a strange problem for me too.
    The concurrency can spy our sales quantity.No chance to change the order ID to randomly order ID?( In another shops isin't probelm like ecommerce or virtuemart. ).
    Many months ago you said you were going to work around it a different way. What has been your experience with that?
    http://www.zen-cart.com/forum/showthread.php?t=50074
    .

    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.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v139h how to increase the zone numbers ?
    By sami1976 in forum Basic Configuration
    Replies: 8
    Last Post: 5 Sep 2012, 08:27 AM
  2. Three Languages with three different menu
    By sandrapaula in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 24 Oct 2007, 03:48 PM
  3. Replies: 2
    Last Post: 3 Jul 2006, 02:01 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