Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2010
    Posts
    37
    Plugin Contributions
    0

    Default retreive order_total and customers_email_address in TABLE_ORDERS

    hello,

    i've been trying to retreive order_total and customers_email_address in TABLE_ORDERS at /index.php?main_page=account_history_info&order_id=120

    i tried hard and many combinations and finally to add following lines in tpl_account_history_info_default.php, but it doesn't give me the two data. im sorry that i don't know php well. hope someone expert here could offer the help. any help is appreciated.

    <?php
    $myorderno = $_GET['order_id'];

    $my_query = "SELECT order_total, customers_email_address
    FROM " . TABLE_ORDERS . "
    WHERE orders_id = $myorderno";
    $my_query = $db->Execute($my_query);
    $my_ot = $my_query->field['order_total'];
    $my_email = $my_query->field['customers_email_address'];

    echo $my_ot;
    echo $my_email;
    ?>

  2. #2
    Join Date
    Nov 2010
    Posts
    37
    Plugin Contributions
    0

    Default Re: retreive order_total and customers_email_address in TABLE_ORDERS

    with continuous effort to resolve my issue, i found the cause, there was s missing, causing the issue.

    $my_ot = $my_query->fields['order_total'];
    $my_email = $my_query->fields['customers_email_address'];

    thanks still goes to this forum.

 

 

Similar Threads

  1. v151 Newsletter error TABLE_ORDERS doesn't exist
    By buildingblocks in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 17
    Last Post: 14 Dec 2014, 12:24 AM
  2. Pull customers_email_address into Products Description 2
    By abcschooldr in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 19 Apr 2013, 09:31 PM
  3. Replies: 1
    Last Post: 8 Feb 2011, 02:07 AM
  4. Retreive deleted product?
    By shelbyErgopro in forum General Questions
    Replies: 1
    Last Post: 13 Jul 2009, 06:40 PM
  5. order_total class and class redeclaration
    By s_p_ike in forum General Questions
    Replies: 1
    Last Post: 8 Feb 2007, 11:33 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