Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: $db-Execute() issue with fields... Please please please help.

    Quote Originally Posted by Ooba_Scott View Post
    So, we added the line...

    Code:
    'gift_message' => $_SESSION['gift-message'],
    to :

    Code:
     LINE 350 (approx)...
    
    $this->info = array('order_status' => DEFAULT_ORDERS_STATUS_ID,
                              'currency' => $_SESSION['currency'],
                              'currency_value' => $currencies->currencies[$_SESSION['currency']]['value'],
                              'payment_method' => $GLOBALS[$class]->title,
                              'payment_module_code' => $GLOBALS[$class]->code,
                              'coupon_code' => $coupon_code->fields['coupon_code'],
          //                          'cc_type' => (isset($GLOBALS['cc_type']) ? $GLOBALS['cc_type'] : ''),
          //                          'cc_owner' => (isset($GLOBALS['cc_owner']) ? $GLOBALS['cc_owner'] : ''),
          //                          'cc_number' => (isset($GLOBALS['cc_number']) ? $GLOBALS['cc_number'] : ''),
          //                          'cc_expires' => (isset($GLOBALS['cc_expires']) ? $GLOBALS['cc_expires'] : ''),
          //                          'cc_cvv' => (isset($GLOBALS['cc_cvv']) ? $GLOBALS['cc_cvv'] : ''),
                              'shipping_method' => (is_array($_SESSION['shipping']) ? $_SESSION['shipping']['title'] : $_SESSION['shipping']),
                              'shipping_module_code' => (isset($_SESSION['shipping']['id']) && strpos($_SESSION['shipping']['id'], '_') > 0 ? $_SESSION['shipping']['id'] : $_SESSION['shipping']),
                              'shipping_cost' => $_SESSION['shipping']['cost'],
                              'subtotal' => 0,
                              'shipping_tax' => 0,
                              'tax' => 0,
                              'total' => 0,
                              'tax_groups' => array(),
                              'comments' => (isset($_SESSION['comments']) ? $_SESSION['comments'] : ''),
                              'gift_message' => $_SESSION['gift-message'],
                              'ip_address' => $_SESSION['customers_ip_address'] . ' - ' . $_SERVER['REMOTE_ADDR']
                              );
    Suggestion: change your added code to read:
    'gift_message' => (isset($_SESSION['gift_message']) ? $_SESSION['gift_message'] : ''),

    It'll prevent the warnings that would normally be generated when $_SESSION['gift_message'] isn't set.

    Cheers
    Rod

  2. #12
    Join Date
    Jul 2009
    Posts
    234
    Plugin Contributions
    1

    Default Re: $db-Execute() issue with fields... Please please please help.

    Awesome... Thanks Rod....

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 2
    Last Post: 30 Mar 2011, 03:28 AM
  2. Replies: 4
    Last Post: 1 Oct 2010, 05:09 AM
  3. Please anybody please help with Scrolling Sidebox Mod. in IE8
    By hcd888 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 Oct 2009, 03:42 AM
  4. please help,weight issue with postage
    By vikky in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 14 May 2008, 11:52 AM
  5. Issue with zencart 1.26...Please Help
    By mfreund in forum General Questions
    Replies: 1
    Last Post: 22 Nov 2007, 08:57 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