Support

Home Forums Event Espresso Premium Registration Edit Notifications

Registration Edit Notifications

Posted: January 23, 2021 at 12:05 am


texashauntersgroup

January 23, 2021 at 12:05 am

I have a question in relation to when the end-user makes edits through the link created by the shortcode [PRIMARY_REGISTRANT_FRONTEND_EDIT_REG_LINK].

Is there a way for the system to send a notification email to the admin side when an edit is performed by the end-user? For example, if they change a question’s answer from “No food allergies” to “shellfish will kill me” so that we would know an update was made? This is an extreme example but it helps illustrate the need.

If this does not exist are hooks present to allow a programmer to add this feature?

Thank you!


texashauntersgroup

January 27, 2021 at 9:35 pm

I just wanted to follow up. Thank you!


Tony

  • Support Staff

January 28, 2021 at 7:39 am

Hi there,

Currently, we don’t have an option to trigger emails when a registration is updated/edited.

I did some digging into this and there are hooks fired on the request that you can use, the main one being:

AHEE__EE_Single_Page_Checkout__process_attendee_information__end

Which allows you to hook into SPCO after the attendee information has been processed and from there you could trigger an email. However, we don’t have a ‘Registration Edited’ message type to trigger in this instance although you could simply ‘retrigger’ the current registration message and resend that.

One issue with this is EE does not ‘save’ what was changed on the registration to include in an email. So in your example above you wouldn’t know that specific question has been edited, just that something on the registration as a while had been changed.


texashauntersgroup

January 28, 2021 at 11:32 pm

Thank you as usual Tony. I will have our developer we leverage look into this.

Not knowing the specific item is not too bad. I am already emailing the event admin all the questions and answers in the email templates so it would not be too hard to track down with a quick comparison. I just need to get past the main issue of not knowing an edit happened.


Tony

  • Support Staff

January 29, 2021 at 4:24 am

Here is a quick example I threw together when investigating this:

https://gist.github.com/Pebblo/77a237e8ce3b3e3aad21d157f69ff2dd

It’s not likely going to meet every use case but should help as a starting point at least.

The support post ‘Registration Edit Notifications’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Tony 2 months, 2 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!