Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,239
    Plugin Contributions
    1

    Default 'Set next order number' - is this stored anywhere?

    A 'New Order ID' is entered in Admin - Store Manager. At a later date, and before any orders are taken, I want to check the value that was entered. How would I go about doing that?

    The number entered is not stored in the database.
    Last edited by simon1066; 29 Oct 2014 at 10:57 AM.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: 'Set next order number' - is this stored anywhere?

    Quote Originally Posted by simon1066 View Post
    A 'New Order ID' is entered in Admin - Store Manager. At a later date, and before any orders are taken, I want to check the value that was entered. How would I go about doing that?

    The number entered is not stored in the database.
    It is stored as the next primary key for the table orders. Can be found using myphpadmin or an appropriate sql statement to retrieve the same.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,239
    Plugin Contributions
    1

    Default Re: 'Set next order number' - is this stored anywhere?

    Thank you, I never would have found that without help.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 'Set next order number' - is this stored anywhere?

    ... and that number is incremented on every order, so the only way to find out "what number was entered" is to look at your actual orders (Admin->Customers->Orders) and see where the order-numbers suddenly started at a new value.
    .

    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
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: 'Set next order number' - is this stored anywhere?

    Quote Originally Posted by DrByte View Post
    ... and that number is incremented on every order, so the only way to find out "what number was entered" is to look at your actual orders (Admin->Customers->Orders) and see where the order-numbers suddenly started at a new value.
    If I may add for clarity, the above would "post mortem" identify what value was entered as an order would have been placed after the "change" was made as the original question was more along the lines of how to identify the next order number without having any the historical information provided by having orders placed.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 'Set next order number' - is this stored anywhere?

    True. He did say "At a later date, and before any orders were taken". I was replying based on only the "at a later date" part ... somehow I missed the "before any orders were taken" part.
    Thanks for clarifying. :)
    .

    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.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: 'Set next order number' - is this stored anywhere?

    Quote Originally Posted by DrByte View Post
    True. He did say "At a later date, and before any orders were taken". I was replying based on only the "at a later date" part ... somehow I missed the "before any orders were taken" part.
    Thanks for clarifying. :)
    Thing was, and true to form, it was still correct and further beneficial to readers of the thread.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

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. v154 Set next order number
    By adb34 in forum General Questions
    Replies: 5
    Last Post: 27 Jul 2015, 11:22 AM
  3. 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
  4. What is this weird number next to product image?
    By judygirl in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 10 Nov 2008, 04:52 AM
  5. Order number ID set as UUID
    By Xam in forum Managing Customers and Orders
    Replies: 7
    Last Post: 20 Aug 2008, 10:46 AM

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