Support

Home Forums Event Espresso Premium EE3 – Send Notification to Customer and Admin When Status Manually Changed

EE3 – Send Notification to Customer and Admin When Status Manually Changed

Posted: May 28, 2019 at 9:33 am

Viewing 8 reply threads


sosfirstaid.ca

May 28, 2019 at 9:33 am

Hi Support,

We currently are using the invoice payment method to accept e-transfers. We were wondering if there is a way that once we change the status in the backend from pending to completed, that it automatically triggers the notification that should be sent to the user and the admin?

Thanks


sosfirstaid.ca

May 29, 2019 at 1:59 pm

Hi Support, Any luck?


Josh

  • Support Staff

May 29, 2019 at 2:23 pm

Hi,

This type of addition would require custom development. Do you have a PHP developer on your team that could add this? If not, Event Espresso 4 has this feature built-in, so you could consider migrating the site to use Event Espresso 4.


sosfirstaid.ca

May 31, 2019 at 9:15 am

Hi Josh,

Yes I can make the PHP modifications. Can you outline what needs to be done or provide any snippets or direction on hooks?

Thanks


Josh

  • Support Staff

May 31, 2019 at 2:54 pm

I can look into this. May I ask how exactly are you changing the status in the backend from pending to completed, is that on the Edit Attendee Payment Record page or some other way?


sosfirstaid.ca

June 3, 2019 at 1:14 pm

Hi Josh,

We are editing on the Edit Attendee Payment Record page.

Thanks,
Cam


Josh

  • Support Staff

June 3, 2019 at 1:24 pm

OK,

If I understand correctly, you do not want to have to select the option on that page to send the emails, you want that selected automatically instead?


sosfirstaid.ca

June 3, 2019 at 3:13 pm

That is correct.


Josh

  • Support Staff

June 3, 2019 at 4:08 pm

You can add the following code to your site:

add_action('admin_print_scripts', 'my_change_ee_admin_default_email_selection', 11 );
function my_change_ee_admin_default_email_selection() {
    $custom = '
    jQuery(document).ready(function($){
        $("input[type=\'radio\'][name=\'send_payment_rec\']").first().prop("checked",true);
    });';
    wp_add_inline_script('event_espresso_js', $custom);
}

What that will do is pre-select that “Yes” radio button for the “Do you want to send a payment received notice to registrant?” option.

You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file.

Viewing 8 reply threads

The support post ‘EE3 – Send Notification to Customer and Admin When Status Manually Changed’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso