Support » Plugin: WC Multiple Email Recipients » Oh Hold Status Emails

  • Resolved Eighty3

    (@eighty3)


    HI there,

    I really need to be able to send out to a couple of other people when an order is in the on-hold status but it doesn’t seem to be supported. Any tips as to how I can get this working?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Con Schneider

    (@conschneider)

    Automattic Happiness Engineer

    Hello there,

    I think you will need to custom code this as no plugin or workaround comes to mind that does this. The WooCommerce email class offers a bunch of hooks. For example:

    add_action( $action, array( __CLASS__, 'send_transactional_email' ), 10, 10 );
    to send an email.

    Each notification mail has its own class WC_Email_Customer_On_Hold_Order is the one you need to trigger this.

    Kind regards,

    • This reply was modified 2 years, 7 months ago by  Con Schneider.
    Plugin Contributor dinodesigns87

    (@dinodesigns87)

    Hi there, I came here to ask about ‘On hold’ email support too. I was able to get it working by adding the following to your plugin’s functions.php file:

    if ($object == 'customer_on_hold_order' ) {
    $headers .= 'Bcc: ' . implode(',', $emails) . "\r\n";
    //break;
    }

    I just copied one of the other if statements and swapped in the ‘customer_on_hold_order value. I also removed the second half of the if statement as obviously there’s no $wcme_options option for this yet.

    Would it be possible to include this in your next version of the plugin?

    Thanks very much for creating this plugin! 🙂

    Thanks,

    Paul

    Plugin Author Con Schneider

    (@conschneider)

    Automattic Happiness Engineer

    Hey Paul,

    Thanks a lot for your input, appreciate it very much. I have tested and implemented the support for on-hold mails as per your suggestion.

    You are now also listed as an contributor for this plugin here: https://wordpress.org/plugins/wc-multiple-email-recipients/advanced/.
    🙂

    Cheers and have a good weekend,
    Con

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Oh Hold Status Emails’ is closed to new replies.