• Resolved messer1202

    (@messer1202)


    Hello,

    I tried to set up the plugin to send a custom email when the order is updated to a certain custom order status. The email works just fine and can be sent manually via the actions in the backend of the order. But the email does not trigger when the order status is updated. I tried a core order status, and it triggers just fine. So the problem here is the custom order status. I used the plugin WooCommerce Order Status Manager to create this one.

    Is there a fix for this?

    Thanks a lot!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Algoritmika

    (@algoritmika)

    Hi @messer1202,

    Sorry for the late reply.

    That’s odd… It should work with custom order statuses as well. Could you please try adding this PHP snippet to your site:

    add_filter( 'woocommerce_email_actions', function ( $actions ) {
    	$actions[] = 'woocommerce_order_status_shipped';
    	return $actions;
    } );

    Here, in woocommerce_order_status_shipped, you need to replace shipped with an actual custom status slug. For example, if your custom status slug is wc-ready, you would write woocommerce_order_status_ready. Hope you get what I mean.

    Please give it a try and let me know if that makes any difference.

    Plugin Author Algoritmika

    (@algoritmika)

    I’m going to mark this thread as “resolved” for now, hope that’s ok. Please let me know if there are still any questions/issues.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Order Statuses don’t trigger’ is closed to new replies.