Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Set next order number

    Can you use coding for the month and/or year this or does it have to be a physical number?
    Learning Fast.
    Eden Craft Supplies

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,913
    Plugin Contributions
    96

    Default Re: Set next order number

    Quote Originally Posted by adb34 View Post
    Can you use coding for the month and/or year this or does it have to be a physical number?
    The next-order number you enter in Tools->Store Manager, Set next order number, must be an integer.

  3. #3
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Set next order number

    Quote Originally Posted by lat9 View Post
    The next-order number you enter in Tools->Store Manager, Set next order number, must be an integer.
    dam, Thanks.
    Learning Fast.
    Eden Craft Supplies

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,913
    Plugin Contributions
    96

    Default Re: Set next order number

    Of course, 2015070000 is a number ... and you'd start creating order IDs like 2015070000, 2015070001, etc. Just adjust the lower digits (0000) to reflect the maximum number of orders you expect to receive in a month (0000 => 9999).

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Set next order number

    Keep in mind that since the order_id field is INTEGER, its maximum allowed value is 2147483647.
    To use numbers higher than that you'd need to change the table schema definition for the order-id in all related tables to be BIGINT.


    For v2 we will have customizable order-numbers (for the customer to see), with the old order-id field simply being a private internal sequential tracker for audit/integrity purposes, and the configurable order-number being something you configure for yourself, such as date-based or a random hash value or UUID or store-name-plus-some-value, etc.

    Unfortunately there are a LOT of places in the code where the order-id is output directly so changing it there is a bit challenging in the current version.
    .

    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.

  6. #6
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Set next order number

    What I was hoping to do was 'layer' the receipt number for example;

    receipt number | month | Year and make all the element automatic. Just for ease really.

 

 

Similar Threads

  1. v154 Get Next Order Number
    By citapinc in forum Addon Payment Modules
    Replies: 8
    Last Post: 29 Aug 2015, 12:44 AM
  2. v151 "Tools > Store Manager > Set next order number" not working properly
    By chowyungunz in forum Managing Customers and Orders
    Replies: 7
    Last Post: 5 Nov 2014, 07:12 PM
  3. v151 'Set next order number' - is this stored anywhere?
    By simon1066 in forum Customization from the Admin
    Replies: 6
    Last Post: 30 Oct 2014, 07:05 PM
  4. Order number ID set as UUID
    By Xam in forum Managing Customers and Orders
    Replies: 7
    Last Post: 20 Aug 2008, 10:46 AM
  5. Set Default Order Number Above 1?
    By Rydel in forum Customization from the Admin
    Replies: 2
    Last Post: 15 Mar 2007, 08:42 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