Running Zen cart 1.5.7c on PHP 7.4 with OPC using Responsive Classic template.
Payments accepted (PayPal Website Payments Standard & Bank Transfer).
Recently We have been getting Duplicate Orders on EVERY order that came when customers chose PayPal as their payment method.
I know the great DrByte always advises NOT to use that payment method, so if anyone doesn't have to use this payment, you should follow his advise.
After doing a LOT of online research on the forum and elsewhere, I finally found a Fix that worked for us
It was in a post by LissaE from a response from PayPal tech support...
https://www.zen-cart.com/showthread....448#post684448
Also found a link to the above post from another post which also has other suggestions by tfharman...
https://www.zen-cart.com/showthread....352#post854352
It suggested changing the code in includes/modules/payments/paypal.php on Line 218 from:
Code:
'redirect_cmd' => '_xclick','rm' => 2,'bn' => 'zencart','mrb' => 'R-6C7952342H795591R','pal' => '9E82WJBKKGPLQ',
TO
Code:
'redirect_cmd' => '_xclick','rm' => 1,'bn' => 'zencart','mrb' => 'R-6C7952342H795591R','pal' => '9E82WJBKKGPLQ',
This did the trick for us, we have STOPPED getting Duplicate Orders when customers choose PayPal.
We are still getting the following Error log PHP Notice Generate every time a PayPal order comes through
Code:
Request URI: /ipn_main_handler.php
--> PHP Notice: Undefined index: ppdebug in /ipn_main_handler.php on line 119.
--> PHP Notice: Undefined index: exchange_rate in /ipn_main_handler.php on line 154.
--> PHP Notice: Undefined index: settle_amount in /ipn_main_handler.php on line 156.
--> PHP Notice: Undefined index: parent_txn_id in /ipn_main_handler.php on line 181.
--> PHP Notice: Undefined index: auth_status in /ipn_main_handler.php on line 184.
Request URI: /ipn_main_handler.php
#1 flat->update_status() called at [/includes/modules/shipping/flat.php:28]
#2 flat->__construct() called at [/includes/classes/shipping.php:68]
#3 shipping->__construct() called at [/ipn_main_handler.php:294]
--> PHP Notice: Trying to get property 'delivery' of non-object in /includes/modules/shipping/flat.php on line 41.
--> PHP Notice: Trying to access array offset on value of type null in /includes/modules/shipping/flat.php on line 41.
--> PHP Notice: Trying to access array offset on value of type null in /includes/modules/shipping/flat.php on line 41.
Request URI: /ipn_main_handler.php
#1 ot_shipping->process() called at [/includes/classes/order_total.php:65]
#2 order_total->process() called at [/ipn_main_handler.php:306]
--> PHP Notice: Undefined index: flat in /includes/modules/order_total/ot_shipping.php on line 81.
--> PHP Notice: Trying to get property 'tax_class' of non-object in /includes/modules/order_total/ot_shipping.php on line 81.
Request URI: /ipn_main_handler.php
#1 ipn_create_order_array() called at [/ipn_main_handler.php:321]
--> PHP Notice: Undefined index: reason_code in /includes/modules/payment/paypal/paypal_functions.php on line 278.
--> PHP Notice: Undefined index: pending_reason in /includes/modules/payment/paypal/paypal_functions.php on line 281.
--> PHP Notice: Undefined index: invoice in /includes/modules/payment/paypal/paypal_functions.php on line 282.
--> PHP Notice: Undefined index: payer_business_name in /includes/modules/payment/paypal/paypal_functions.php on line 286.
--> PHP Notice: Undefined index: parent_txn_id in /includes/modules/payment/paypal/paypal_functions.php on line 302.
--> PHP Notice: Undefined index: settle_currency in /includes/modules/payment/paypal/paypal_functions.php on line 307.
Request URI: /ipn_main_handler.php
#1 ipn_create_order_history_array() called at [/ipn_main_handler.php:328]
--> PHP Notice: Undefined index: parent_txn_id in /includes/modules/payment/paypal/paypal_functions.php on line 324.
--> PHP Notice: Undefined index: pending_reason in /includes/modules/payment/paypal/paypal_functions.php on line 326.
Request URI: /ipn_main_handler.php
--> PHP Notice: Undefined index: pending_reason in /ipn_main_handler.php on line 339.
--> PHP Notice: Undefined index: parent_txn_id in/ipn_main_handler.php on line 339.
Request URI: /ipn_main_handler.php
--> PHP Notice: Undefined property: ot_subtotal::$credit_class in /ipn_main_handler.php on line 362.
--> PHP Notice: Undefined property: ot_shipping::$credit_class in /ipn_main_handler.php on line 362.
--> PHP Notice: Undefined property: ot_total::$credit_class in /ipn_main_handler.php on line 362.
Request URI: /ipn_main_handler.php
--> PHP Notice: Undefined index: orders_status in /ipn_main_handler.php on line 380.
Request URI: /ipn_main_handler.php
--> PHP Notice: Undefined variable: otax in /ipn_main_handler.php on line 381.
Bookmarks