ePay / zencart

0 stars 2 forks source link

Checkout issues (on accept/callback) #5

Open syntaxerror opened 9 years ago

syntaxerror commented 9 years ago
  1. A store having two currencies, EUR and NOK, where NOK are default. When the payment window close, the customers selected currency mysteriously changes to EUR every time when checkout is done in NOK.
  2. Cart is not fully reset. T.ex shipping option etc will still be selected if you go to cart one more time.
syntaxerror commented 9 years ago

This is a error log automatically produced and stored by Zen Cart on accept:

PHP Notice: Constant HEADING_ADDRESS_INFORMATION already defined in /includes/languages/norwegian/checkout_process.php on line 46 PHP Notice: Undefined variable: language_page_directory in /includes/modules/require_languages.php on line 18 PHP Notice: Undefined index: HTTP_REFERER in /includes/modules/classic/checkout_process.php on line 30 PHP Notice: Undefined variable: coupon_code in /includes/classes/order.php on line 352 PHP Notice: Trying to get property of non-object in /includes/classes/order.php on line 352 PHP Notice: Constant MODULE_ORDER_TOTAL_COUPON_HEADER already defined in /includes/languages/norwegian/modules/order_total/ot_coupon.php on line 14 PHP Notice: Constant SHIPPING_NOT_INCLUDED already defined in /includes/languages/norwegian/modules/order_total/ot_gv.php on line 13 PHP Notice: Constant TAX_NOT_INCLUDED already defined in /includes/languages/norwegian/modules/order_total/ot_gv.php on line 14 PHP Notice: Use of undefined constant MODULE_ORDER_TOTAL_GV_REDEEM_BOX - assumed 'MODULE_ORDER_TOTAL_GV_REDEEM_BOX' in /includes/modules/order_total/ot_gv.php on line 46 PHP Notice: Undefined property: ot_epay_transfee::$credit_class in /includes/classes/order_total.php on line 181 PHP Notice: Undefined property: ot_subtotal::$credit_class in /includes/classes/order_total.php on line 181 PHP Notice: Undefined property: ot_shipping::$credit_class in /includes/classes/order_total.php on line 181 PHP Notice: Undefined index: total in /includes/classes/order_total.php on line 183 PHP Notice: Undefined index: cc_id in /includes/modules/order_total/ot_coupon.php on line 393 PHP Notice: Undefined index: total in /includes/modules/order_total/ot_group_pricing.php on line 136 PHP Notice: Undefined property: ot_tax::$credit_class in /includes/classes/order_total.php on line 181 PHP Notice: Undefined property: ot_loworderfee::$credit_class in /includes/classes/order_total.php on line 181 PHP Notice: Undefined property: ot_total::$credit_class in /includes/classes/order_total.php on line 181 PHP Notice: Undefined index: total in /includes/modules/order_total/ot_coupon.php on line 60 PHP Notice: Undefined index: cc_id in /includes/modules/order_total/ot_coupon.php on line 393 PHP Notice: Undefined index: total in /includes/modules/order_total/ot_group_pricing.php on line 32 PHP Notice: Undefined index: cc_number in /includes/classes/order.php on line 607 PHP Notice: Undefined index: cc_type in /includes/classes/order.php on line 649 PHP Notice: Undefined index: cc_owner in /includes/classes/order.php on line 650 PHP Notice: Undefined index: cc_number in /includes/classes/order.php on line 651 PHP Notice: Undefined index: cc_expires in /includes/classes/order.php on line 652 PHP Notice: Undefined index: attributes in /includes/classes/order.php on line 728 PHP Notice: Undefined property: ot_epay_transfee::$credit_class in /includes/classes/order_total.php on line 141 PHP Notice: Undefined property: ot_subtotal::$credit_class in /includes/classes/order_total.php on line 141 PHP Notice: Undefined property: ot_shipping::$credit_class in /includes/classes/order_total.php on line 141 PHP Notice: Undefined property: ot_tax::$credit_class in /includes/classes/order_total.php on line 141 PHP Notice: Undefined property: ot_loworderfee::$credit_class in /includes/classes/order_total.php on line 141 PHP Notice: Undefined property: ot_total::$credit_class in /includes/classes/order_total.php on line 141 PHP Notice: Undefined variable: total_products_price in /includes/classes/order.php on line 921 PHP Notice: Undefined variable: products_tax in /includes/classes/order.php on line 921 PHP Notice: Undefined variable: total_products_price in /includes/classes/order.php on line 922 PHP Notice: Undefined property: ot_epay_transfee::$credit_class in /includes/classes/order_total.php on line 217 PHP Notice: Undefined property: ot_subtotal::$credit_class in /includes/classes/order_total.php on line 217 PHP Notice: Undefined property: ot_shipping::$credit_class in /includes/classes/order_total.php on line 217 PHP Notice: Undefined index: cc_id in /includes/modules/order_total/ot_coupon.php on line 381 PHP Notice: Undefined property: ot_tax::$credit_class in /includes/classes/order_total.php on line 217 PHP Notice: Undefined property: ot_loworderfee::$credit_class in /includes/classes/order_total.php on line 217 PHP Notice: Undefined variable: gv_payment_amount in /includes/modules/order_total/ot_gv.php on line 222 PHP Notice: Undefined property: ot_total::$credit_class in /includes/classes/order_total.php on line 217 PHP Notice: Undefined property: ot_epay_transfee::$credit_class in /includes/modules/classic/checkout_process.php on line 102 PHP Notice: Undefined property: ot_subtotal::$credit_class in /includes/modules/classic/checkout_process.php on line 102 PHP Notice: Undefined property: ot_shipping::$credit_class in /includes/modules/classic/checkout_process.php on line 102 PHP Notice: Undefined property: ot_tax::$credit_class in /includes/modules/classic/checkout_process.php on line 102 PHP Notice: Undefined property: ot_total::$credit_class in /includes/modules/classic/checkout_process.php on line 102 PHP Notice: Undefined property: ot_epay_transfee::$credit_class in /includes/classes/order_total.php on line 232 PHP Notice: Undefined property: ot_subtotal::$credit_class in /includes/classes/order_total.php on line 232 PHP Notice: Undefined property: ot_shipping::$credit_class in /includes/classes/order_total.php on line 232 PHP Notice: Undefined property: ot_tax::$credit_class in /includes/classes/order_total.php on line 232 PHP Notice: Undefined property: ot_loworderfee::$credit_class in /includes/classes/order_total.php on line 232 PHP Notice: Undefined property: ot_total::$credit_class in /includes/classes/order_total.php on line 232 PHP Warning: Cannot modify header information - headers already sent by (output started at /includes/languages/norwegian/checkout_process.php:46) in /includes/functions/functions_general.php on line 46

storkie commented 9 years ago

Looks like /includes/languages/norwegian/checkout_process.php is causing the issues.

Try to add a echo after this line: https://github.com/ePay/zencart/blob/master/ext/modules/payment/epay/callback.php#L29

syntaxerror commented 9 years ago

It's not the Norwegian file no, you'll get the same error log when using default English, or any other. You'll find those error logs in your test site's /logs folder

The problem is more likely the way the files are called/included (several times?).

storkie commented 9 years ago

Can you try removing this line: https://github.com/ePay/zencart/blob/master/ext/modules/payment/epay/callback.php#L22

Or use require_once instead: http://php.net/manual/en/function.require-once.php