Results 1 to 1 of 1
  1. #1
    Join Date
    Sep 2010
    Posts
    32
    Plugin Contributions
    0

    Default [Done v1.5.0] PayPal ipnhandler might insert extra order status history notice

    I am talking about latest zencart 1.3.9h and the script is

    root > ipn_main_handler.php

    Around line 347

    There is a code like this
    Code:
    zen_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);
            if (MODULE_PAYMENT_PAYPAL_ADDRESS_OVERRIDE == '1') {
              $sql_data_array['comments'] = '**** ADDRESS OVERRIDE ALERT!!! **** CHECK PAYPAL ORDER DETAILS FOR ACTUAL ADDRESS SELECTED BY CUSTOMER!!';
              $sql_data_array['customer_notified'] = -1;
            }
            zen_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array)
    But this should be changed to this
    Code:
    zen_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);
            if (MODULE_PAYMENT_PAYPAL_ADDRESS_OVERRIDE == '1') {
              $sql_data_array['comments'] = '**** ADDRESS OVERRIDE ALERT!!! **** CHECK PAYPAL ORDER DETAILS FOR ACTUAL ADDRESS SELECTED BY CUSTOMER!!';
              $sql_data_array['customer_notified'] = -1;
              zen_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);
            }

    ISSUE in code is if MODULE_PAYMENT_PAYPAL_ADDRESS_OVERRIDE = 0 then it add a record twice in order status history.

    And in result it appears twice in order page admin panel. As attached
    Attached Images Attached Images  

 

 

Similar Threads

  1. Order Status History & Comments
    By dmagic in forum Basic Configuration
    Replies: 3
    Last Post: 21 May 2015, 01:06 PM
  2. Order Status History & Comments
    By dmagic in forum Customization from the Admin
    Replies: 1
    Last Post: 21 May 2015, 10:06 AM
  3. How Do I Delete Order Status History?
    By dcschan in forum Managing Customers and Orders
    Replies: 2
    Last Post: 28 Feb 2011, 12:07 AM
  4. Order Status and Order History
    By scottmcclean in forum Managing Customers and Orders
    Replies: 7
    Last Post: 6 Jan 2010, 07:01 PM
  5. Replies: 0
    Last Post: 4 Jun 2006, 05:17 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