Note: In respect this topic was posted in the Commercial Support section of the forum, OC version incomplete. 4 digits. As for the catalog/controller/extension/total/voucher.php file, on line 54,artyfly wrote: ↑Wed Sep 29, 2021 4:01 amhi there,
We had a developer build a custom checkout for us but we're having intermittent issues with the session order_id being unset after the confirm step loads, causing errors in the log like the ones below, and the order ending up stuck in the missing orders list. This appears to affect all payment methods, but not every order. We can't really identify why it does it sometimes but not others... but it happens almost every time on our testing domain.
2021-09-28 19:45:52 - PHP Notice: Undefined index: order_id in [path]/public_html/catalog/controller/extension/payment/free_checkout.php on line 13
2021-09-28 19:45:52 - PHP Notice: Trying to access array offset on value of type bool in [path]/public_html/catalog/controller/extension/total/voucher.php on line 54
We've tried troubleshooting and can confirm that the order_id is set as it's supposed to be when the confirm step loads (tested by posting it to the console log upon load), but is for some reason unset, or otherwise unavailable by the time the payment method save() function is called, resulting in the errors in the log and the order status not being set, leaving it in the missing orders list.
Happy to pay for someone's time to fix it for us!
We've setup a fresh OC install on a staging domain (oc 3.0.3. and installed the extension for testing, to confirm it wasn't just a conflict with another mod. We'll provide access to that domain for you to investigate.
Shoot me a message for more info.
Thanks in advance!!
find:
Code: Select all
if (in_array($order_info['order_status_id'], $this->config->get('config_complete_status'))) {
Code: Select all
if (in_array($order_info['order_status_id'], (array)$this->config->get('config_complete_status'))) {
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Feel free to email us with all the details for a quick estimate: info@antropy.co.uk
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Yes, that is correct. The fix on the above was only for the voucher to help you speed up the process but was not related to the entire issue that was addressed. You did, however, posted in the right location on the forum for further assistance. If you'd like, I could take a look at the issue for you as a custom job. Send me a direct PM on the forum for a quote.artyfly wrote: ↑Wed Sep 29, 2021 6:36 amThanks for the response. Although that would fix the voucher error in the log, the main issue is that the order being placed does not get the initial order status update so it gets stuck in the missing orders list.straightlight wrote: ↑Wed Sep 29, 2021 4:43 amNote: In respect this topic was posted in the Commercial Support section of the forum, OC version incomplete. 4 digits. As for the catalog/controller/extension/total/voucher.php file, on line 54,artyfly wrote: ↑Wed Sep 29, 2021 4:01 amhi there,
We had a developer build a custom checkout for us but we're having intermittent issues with the session order_id being unset after the confirm step loads, causing errors in the log like the ones below, and the order ending up stuck in the missing orders list. This appears to affect all payment methods, but not every order. We can't really identify why it does it sometimes but not others... but it happens almost every time on our testing domain.
2021-09-28 19:45:52 - PHP Notice: Undefined index: order_id in [path]/public_html/catalog/controller/extension/payment/free_checkout.php on line 13
2021-09-28 19:45:52 - PHP Notice: Trying to access array offset on value of type bool in [path]/public_html/catalog/controller/extension/total/voucher.php on line 54
We've tried troubleshooting and can confirm that the order_id is set as it's supposed to be when the confirm step loads (tested by posting it to the console log upon load), but is for some reason unset, or otherwise unavailable by the time the payment method save() function is called, resulting in the errors in the log and the order status not being set, leaving it in the missing orders list.
Happy to pay for someone's time to fix it for us!
We've setup a fresh OC install on a staging domain (oc 3.0.3. and installed the extension for testing, to confirm it wasn't just a conflict with another mod. We'll provide access to that domain for you to investigate.
Shoot me a message for more info.
Thanks in advance!!
find:
replace with:Code: Select all
if (in_array($order_info['order_status_id'], $this->config->get('config_complete_status'))) {
This should resolve the issue. Ensure to clear both OC caches prior to test the changes during checkout or during the admin API orders.Code: Select all
if (in_array($order_info['order_status_id'], (array)$this->config->get('config_complete_status'))) {
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Hello there,
I would like to assist you with this work.
Please get connected to discuss further.
Regards
Linnea
E- linneajones.mil@gmail.com
I would like to assist you with this work.
Please get connected to discuss further.
Regards
Linnea
E- linneajones.mil@gmail.com
Hi ,
I can help you fix error message on checkout page.
Please connect further and share staging domain been setup.
eMail - deepvyas71@gmail.com
Regards
Deep
I can help you fix error message on checkout page.
Please connect further and share staging domain been setup.
eMail - deepvyas71@gmail.com
Regards
Deep
Expert Opencart Developer & Designer | S: deepvyas71 | E: deepvyas71@gmail.com
Who is online
Users browsing this forum: alanjones, paulfeakins and 69 guests