Results 1 to 1 of 1
  1. #1
    Join Date
    Jul 2013
    Posts
    1
    Plugin Contributions
    0

    cart error losing some data of order in my custom payment module

    Hi there,

    I need help please, I don't know why in the confirmation function I'm losing the data of $order->info.

    When I try to get information of:
    PHP Code:
     'payment_method' => $order->info['payment_method'], 
    is empty, but if get from Session is there
    PHP Code:
    'payment_method' => $_SESSION['payment'], 
    After this part of code $order_totals is empty, maybe is this the problem?:
    PHP Code:
                 if ($insert_order == true) {
                    
    $order_totals = array();

                    if (
    is_array($_SESSION['order_total_modules']->modules)) {
                        
    reset($_SESSION['order_total_modules']->modules);
                       
                        while (list (, 
    $value) = each($_SESSION['order_total_modules']->modules)) {
                            
    $class substr($value0strrpos($value'.'));

                            if (
    $GLOBALS[$class]->enabled) {
                                for (
    $i 0$n sizeof($GLOBALS[$class]->output); $i $n$i++) {
                                    if (
    zen_not_null($GLOBALS[$class]->output[$i]['title']) && zen_not_null($GLOBALS[$class]->output[$i]['text'])) {
                                        
    $order_totals[] = array('code' => $GLOBALS[$class]->code,
                                            
    'title' => $GLOBALS[$class]->output[$i]['title'],
                                            
    'text' => $GLOBALS[$class]->output[$i]['text'],
                                            
    'value' => $GLOBALS[$class]->output[$i]['value'],
                                            
    'sort_order' => $GLOBALS[$class]->sort_order
                                        
    );
                                    }
                                }
                            }
                        }
                    } 
    Attached Files Attached Files

 

 

Similar Threads

  1. v151 Low order fee in trouble with custom payment module
    By ellivir in forum Addon Payment Modules
    Replies: 3
    Last Post: 27 Feb 2014, 03:32 PM
  2. v150 Reinstall without losing the data
    By joimbob444 in forum General Questions
    Replies: 1
    Last Post: 5 Apr 2013, 02:39 PM
  3. No order data payment
    By dmagic in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 21 Nov 2011, 06:25 AM
  4. Multiple Payment Types Per Order With Custom Module?
    By user2037 in forum Addon Payment Modules
    Replies: 0
    Last Post: 25 Jul 2011, 04:45 PM
  5. Custom Customer Data To Order Data
    By fotofx in forum General Questions
    Replies: 1
    Last Post: 22 Aug 2010, 08:10 PM

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