Posted: August 8, 2018 at 7:03 am
|
Hi i would like to customize the php function of the corresponding trigger (Ticket Notice) to send automatically when the registration status is Approved, i dont need to check the transactions status or the payment status..where i can find the function in order to change it as desired (to be triggered only from the registration status) ? thanks |
Hi gint, You actually don’t change the function, this already happens. When a registration status changes to Approved, the Ticket notice is triggered. If that’s not happening on your site, maybe you’ve changed some of the related functions? |
|
|
No i have not change any function, the difference is that i register the attendee through the api endpoint (/v4.8.36/registrations with the following keys ..on the registration panel the registration is approved but the mail is not triggered.. |
OK, so this isn’t happening via the admin UI or frontend UI. The thing about adding registrations via the API is the actions hooks do not fire. So there’s nothing listening for a registration added by the API. Since this is a developer-related question I can advise opening an issue on Github and ask for developer feedback. They’ll likely be able to give you a few ideas on how to approach this. Please use the label “Question” when posting the issue on Github. |
|
|
ok thanks..i would do it |
You’ll find that in the source: https://github.com/eventespresso/event-espresso-core/blob/master/core/domain/entities/RegUrlLink.php The important things are the REG_url_link must be unique, and the database field has a 64 character limit. |
|
The support post ‘Ticket Notice Trigger’ 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.