Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 4 of 4

Thread: Order Number

  1. #1
    computergenius
    Guest


    Default Order Number

    I am creating a Payment Module, but I can't see where the osCommerce Order Number can be found. I can see that it is in the database, orders.orders_id but I would have thought that it would be floating around somewhere...

  2. #2
    osCMax Developer


    Order Number


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    597


    Default Re: Order Number

    It is pulled from the db when needed.

  3. #3
    computergenius
    Guest


    Default Re: Order Number

    Well, it's needed now <G>

    Let me define what I am looking for - what will become the Invoice number, when we issue the invoice. At this stage, there is product in the cart, and I am going to get the payment. But I need something to track the payment, in case I don't get an immediate reply.

    I can't see an order number, I (think that I can) see the cart in the table "sessions", but I can't find a unique number in there. I am using the sessionID in that table, which I don't think is suitable, but is the best that I can do.

  4. #4
    osCMax Developer


    Order Number


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    597


    Default Re: Order Number

    Order numbers are not generated until after processing. It is the way osCommerce is built. So, you cannot get an order number until after the order is completed (it is not assigned until added to the db, which only happens on completion of the transaction).

    I think there is a mod that gets around this issue, as I vaguely recall something about this.

    You may want to look through the osCommerce mods here:
    osCommerce: Contributions

Similar Threads

  1. Change order number
    By garjowan in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 03-30-2006, 08:22 AM
  2. order number
    By joanstead in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 02-09-2006, 09:27 AM
  3. Scrambled or modify order number
    By gamefreak7 in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 07-01-2005, 10:43 AM
  4. Random order number
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 11-09-2003, 11:21 PM
  5. Question about order number
    By kmazumdar in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 11-06-2003, 06:27 PM

Bookmarks

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
  •