Support

Home Forums Event Espresso Premium Ticket Notice Trigger

Ticket Notice Trigger

Posted: August 8, 2018 at 7:03 am


gint

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


Josh

  • Support Staff

August 8, 2018 at 7:24 am

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?


gint

August 8, 2018 at 7:46 am

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..


Josh

  • Support Staff

August 8, 2018 at 7:59 am

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.

https://github.com/eventespresso/event-espresso-core/issues


gint

August 8, 2018 at 8:14 am

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


Josh

  • Support Staff

August 8, 2018 at 8:33 am

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.

Event Espresso