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) ?
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
{
“EVT_ID”:9986,
“ATT_ID”:10001,
“TXN_ID”:9,
“TKT_ID”:3,
“STS_ID”:”RAP”,
“REG_url_link”:”1-aaaf6d26ac8e67effe9d07e427caf804″,
“REG_final_price”: 20.00,
“REG_paid”: 20.00
}
)
..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
Finally i would like to ask where i can find the algorithm that produced the REG_url_link so when i use the api to register a user to produce a compatible url link..is there any specs about the value of that key..for example should be 34 characters long
The important things are the REG_url_link must be unique, and the database field has a 64 character limit.
Viewing 5 reply threads
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.
Support forum for Event Espresso 3 and Event Espresso 4.