• Resolved Jason McKenzie

    (@jasonmckenzie)


    Thanks for this great plugin. There seems to be an issue with the current version.
    We have WooCommerce 5.0.0 installed & Custom Order Status for WooCommerce version 2.0.1 installed. These are the only two plugins that are active.

    On the list orders page, there is options in the bulk action dropdown for changing the order status. When we try to change the order status via the bulk update tool it does nothing.

    I see no errors in the error log. Thank you for your help solving this bug.

Viewing 4 replies - 1 through 4 (of 4 total)
  • There seems to be no callback for handling the bulk status updates, following code makes it work again (you can add this to your functions.php):

    add_filter( 'handle_bulk_actions-edit-shop_order', 'svicky_handle_bulk_action_edit_shop_order', 10, 3 );
    function svicky_handle_bulk_action_edit_shop_order( $redirect_to, $action, $post_ids ) {
    	if ( strpos($action,'mark_') === false ) {
    		return $redirect_to;
    	}
    
    	foreach ( $post_ids as $id ) {
    		$order = wc_get_order($id);
    		$order->update_status(str_replace('mark_','', $action));
    	}
    
    	return $redirect_to;
    }

    Hi @jasonmckenzie

    Regarding your query where the bulk action tool is not working, we have checked that but for us, the bulk action tool is working properly and the order status is getting changed when changed using the bulk action tool.

    It would be great if you can share with us the screenshots of the issue you are facing and of the settings page so that we can check that once and can help you in solving the issue.

    Regards,
    Shasvat shah.

    I have the same problem. At the orders page if I select a few orders and change their status to a default status it changes, if I try to change to a custom status, it does not change.

    Hi @rrd

    As we mentioned that we have checked the bulk action tool but for us, the bulk action tool is working properly and the order status is getting changed when changed using the bulk action tool.

    It would be great if you can share with us the screenshots of the issue you are facing and of the settings page so that we can check that once and can help you in solving the issue.

    Regards,
    Shasvat shah.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bulk Update Order Status Broken’ is closed to new replies.