Mark order complete functionality not working
-
99% percent of the time we want the order to be automatically marked as “Complete,” so we’ve had to manually click the checkbox when creating a label. In the new V1.1.1 plugin, clicking the checkbox doesn’t mark the order as complete, so we have to do it manually. There was no issue with this if I revert to V2.8.1.
-
Hi @harleec, sorry to hear you are experiencing this issue. I tried to replicate this locally with WooCommerce Shipping 1.1.1 but was unable.
What I did notice was that if you use the back arrow after completing the purchase the status was not immediately reflected on the order screen, however, if you refresh the order page it reflects the completed status.
We will look into making the changes reflect on the edit order screen without requiring a reload.
Can you please confirm if the order is show as completed if you refresh the edit order page?
Hi @kloon, unfortunately, I’m not able to reactivate the plugin to continue testing. I use Multi-Carrier Shipping Plugin for Woocommerce from PluginHive for real-time rates, and there appears to be a compatibility issue between the two plugins. With only WooCommerce Shipping & Tax activated, which is how we’ve been operating for years, there’s no issue between the two plugins. If I activate WooCommerce Shipping, I see fatal errors being thrown in the debug log. Also, the message indicating that labels are being migrated to WooCommerce Shipping never goes away.
[11-Sep-2024 19:40:40 UTC] PHP Notice: Function register_rest_route was called incorrectly. REST API routes must be registered on the
rest_api_init
action. Please see Debugging in WordPress for more information. (This message was added in version 5.1.0.) in /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/functions.php on line 6085
[11-Sep-2024 19:40:40 UTC] PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce-multi-carrier-shipping/eha-multi-carrier-shipping-common.php:16
Stack trace: 0 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce-multi-carrier-shipping/eha-multi-carrier-shipping-common.php(16): method_exists() 1 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce-multi-carrier-shipping/core/woocommerce-multi-carrier-shipping-core.php(155): wf_get_shipping_countries_mcp() 2 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce-multi-carrier-shipping/eha-multi-carrier-shipping-common.php(542): eha_multi_carrier_shipping_method->__construct() 3 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/class-wp-hook.php(324): eha_multi_carrier_shipping_setup->eha_multi_carrier_shipping_init() 4 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 5 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 6 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(122): do_action() 7 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(114): WC_Shipping->init() 8 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(68): WC_Shipping->__construct() 9 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(1146): WC_Shipping::instance() 10 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/b2bking/includes/class-b2bking-invoice-gateway.php(25): WooCommerce->shipping() 11 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php(55): B2BKing_Invoice_Gateway->init_form_fields() 12 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(103): WC_Gateway_COD->__construct() 13 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(76): WC_Payment_Gateways->init() 14 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(49): WC_Payment_Gateways->__construct() 15 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(1137): WC_Payment_Gateways::instance() 16 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(201): WooCommerce->payment_gateways() 17 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/CheckoutSchema.php(141): WooCommerce->__get() 18 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/AbstractSchema.php(64): Automattic\WooCommerce\StoreApi\Schemas\V1\CheckoutSchema->get_properties() 19 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractRoute.php(85): Automattic\WooCommerce\StoreApi\Schemas\V1\AbstractSchema->get_item_schema() 20 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractRoute.php(269): Automattic\WooCommerce\StoreApi\Routes\V1\AbstractRoute->get_item_schema() 21 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Checkout.php(80): Automattic\WooCommerce\StoreApi\Routes\V1\AbstractRoute->get_context_param() 22 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/src/StoreApi/RoutesController.php(162): Automattic\WooCommerce\StoreApi\Routes\V1\Checkout->get_args() 23 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/src/StoreApi/RoutesController.php(87): Automattic\WooCommerce\StoreApi\RoutesController->register_routes() 24 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/src/StoreApi/StoreApi.php(30): Automattic\WooCommerce\StoreApi\RoutesController->register_all_routes() 25 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\StoreApi\StoreApi->Automattic\WooCommerce\StoreApi{closure}() 26 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 27 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 28 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/rest-api.php(589): do_action() 29 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/rest-api.php(125): rest_get_server() 30 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce-shipping/classes/legacy-api-controllers/class-wc-rest-connect-base-controller.php(53): register_rest_route() 31 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce-shipping/src/Loader.php(1006): Automattic\WCShipping\LegacyAPIControllers\WC_REST_Connect_Base_Controller->register_routes() 32 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce-shipping/src/Loader.php(1913): Automattic\WCShipping\Loader->tos_rest_init() 33 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce-shipping/src/Loader.php(715): Automattic\WCShipping\Loader->init_rest_endpoints_for_dynamic_request() 34 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/class-wp-hook.php(324): Automattic\WCShipping\Loader->pre_wc_init() 35 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 36 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 37 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(817): do_action() 38 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/class-wp-hook.php(324): WooCommerce->init() 39 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 40 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 41 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-settings.php(700): do_action() 42 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-config.php(123): require_once(‘/home/1155136.c…’) 43 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-load.php(50): require_once(‘/home/1155136.c…’) 44 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-blog-header.php(13): require_once(‘/home/1155136.c…’) 45 /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/index.php(17): require(‘/home/1155136.c…’) 46 {main}thrown in /home/1155136.cloudwaysapps.com/mkrhyqzkac/public_html/wp-content/plugins/woocommerce-multi-carrier-shipping/eha-multi-carrier-shipping-common.php on line 16
Thats for follow up @harleec, based on the error log you posted all those are originating from the Multi Carrier Shipping plugin.
Regarding the messaging about labels being migrated, that will go away once all the labels have successfully migrated. If you have a lot of orders with labels purchased through WooCommerce Shipping & Tax then that process can take quite a while as labels are migrated in batches at a time.
- This reply was modified 2 months, 2 weeks ago by Gerhard Potgieter.
I understand that it’s the other plugin, but I only see it when activating v1.1.1. To be clear, with WooCommerce Shipping & Tax v2.8.1 and Multi-Carrier Shipping Plugin for WooCommerce v3.0.6, the site operates normally and I can process orders. I actually have two sites with this configuration. If I simply activate v1.1.1, the fatal errors occur and I lose functionality, such as I can’t print a packing list from the orders screen.
Hi @kloon, I updated the plugin to v1.1.2. After activating, the same issue still occurs where none of the drop-down options can be executed in the ‘Orders’ screen. For example, if I try printing a pick list by clicking “Apply,” nothing happens when v1.1.2 is activated. If I deactivate, only leaving the original Shipping & Tax v2.8.1, it works. So, there’s still a new compatibility issue with v1.1.2. How can this issue be debugged?
Hi @harleec, we just release 1.1.3 which contains a compatibility fix with other plugins relying on an api. Could you give that a try and see if it resolves the issue for you? Please also clear your browser cache after updating to ensure the latest installed code is running.
If the issue persist I’d be happy to troubleshoot more with you to get to the bottom of this.
Please let me know.
Thanks!
@kloon, the v.1.1.3 works much better. Expected functionality has returned. As for the new workflow, there’s additional clicks now required compared to how v3.8.1works. Two questions: 1) Is the address verification still automatic, or do I now have to explicitly click “Unverified address” every time?; and 2) is it possible to return to the order screen after printing the label, instead of requiring an extra click?
@harleec, great to hear it is working again.
Regarding address validation, it is not a mandatory step even though the message shows in red in the sidebar. You can purchase labels without validating the address. You’d also be glad to hear we have a feature almost ready that will add address validation at checkout when enabled, so the customer can then validate their address at checkout.
As for returning to the order screen, there is no auto return, but the quickest way is to just click the <- arrow top left, which will return you to the order edit screen, or are you referring to the order list screen containing all the orders?
I am marking this topic as resolved for now, happy to continue chatting about the other things.
- You must be logged in to reply to this topic.