Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Posts
    189
    Plugin Contributions
    0

    Default Data base entry to identify that an order was completed

    Hello,

    I am wondering what piece of data in the database would allow me to clearly know that an order was completed - i.e. confirmed.

    Is it order status or perhaps date of purchase field in orders?

    thanks,

    Daniel

  2. #2
    Join Date
    Sep 2005
    Posts
    189
    Plugin Contributions
    0

    Default Re: Data base entry to identify that an order was completed

    Hello,

    OK, i think i found it ...

    Basically it appears that an order record is only generated once a customer confirms the order. At that time a record is generated with an order status and a purchase date. The order status, so it appears, can changed, as the order tucks along ...


    Basically, if i want to know whether a customer has placed an order for a specific item, i must look:

    1. the product id of the product in question
    2. the order id associated with the product exists

    The result can be several order ids. The purchase date for an order could then help distinguish between them.


    thank you,

    Daniel

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Data base entry to identify that an order was completed

    3. the customer's ID will match the customer_id field in the orders table
    4. orders_status in the orders table will match whatever the payment module set the order to upon payment authorization. In many cases, this is "Processing"
    5. The most recent orders_status_history record for that order id will show the most recent status update, and in some cases, the payment module will also add some payment authorization details to the comments field.
    .

    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.

 

 

Similar Threads

  1. Replies: 21
    Last Post: 21 Feb 2015, 05:45 AM
  2. any programs to identify that is belong to which script?
    By andrewmax81 in forum General Questions
    Replies: 4
    Last Post: 5 Dec 2009, 07:39 AM
  3. 1062 Duplicate entry 'Customers who have never completed a purchase' for key 2
    By elliesupport in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 2 Jul 2008, 09:04 PM
  4. Can't access my data MySql data base
    By Roon in forum Installing on a Linux/Unix Server
    Replies: 23
    Last Post: 6 Sep 2007, 03:26 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