Results 1 to 2 of 2
  1. #1
    Join Date
    May 2007
    Posts
    17
    Plugin Contributions
    0

    Default ZC Comment Storage

    Hi,
    At the moment I'm using ZC in conjunction with UPS Worldship. It's working great except I want the comments set by the user (I changed the open input to a pre-defined drop-down) to be automatically entered into the "reference" section of a UPS shipping label.

    So I put in a call to get the comment from the DB and instead of grabbing the comment, it keeps returning what I THINK is a null value. I've checked the database and ZC's admin area and they both show the comments but my query only ever returns "Resource id #15"...that's a null value right?

    Anyway. I looked at the DB and the comments cell in zen_orders_status_history has randomly three, two, or one comment cell per order ID usually including an empty cell.

    I can do a manual work-around but I'd really like it to be automated...for the XML script generated contains the comment...

  2. #2
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: ZC Comment Storage

    Any customer comments will show up in the first order status record, all subsequent comments are added via the Zen Admin. So, sort the result in ascending order and limit the results to one, like so:
    Code:
    $db->Execute("select * from " . TABLE_ORDERS_STATUS_HISTORY . " 
                  where orders_id = '" . $orders_id . "'
                  order by orders_status_history_id asc limit 1");
    Does that help?
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

 

 

Similar Threads

  1. Image storage location
    By discoverytdi in forum General Questions
    Replies: 5
    Last Post: 11 Jan 2012, 10:59 AM
  2. EZ-Pages storage
    By robbie269 in forum General Questions
    Replies: 5
    Last Post: 25 Oct 2010, 05:00 AM
  3. Comment out and un-comment
    By evvano in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 30 Sep 2009, 04:27 AM
  4. To comment or not to comment?
    By FlaDevil in forum General Questions
    Replies: 3
    Last Post: 18 May 2007, 07:57 AM

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