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
But this should be changed to thisCode: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)
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



