Posted: April 29, 2014 at 1:06 am
|
Hi Team. Thanks a lot. |
|
Sorry, this might be a little vague. Our plugin is a wordpress plugin that talks to EE and to Infusionsoft. We want to update Infusionsoft when we mark an attendee as attended in EE (we don’t want the client to have to do anything within Infusionsoft so are driving this from EE). Thanks |
|
Hi, From what I can see there isn’t a hook for the check in. In the admin it looks like it just adds the data directly to the database. Looks similar in the JSON API as well, it just calls a function to update the database. I can make a request for hooks to be added to the checkin and checkout functions in the API and admin, but I cannot say if or when these would be added. Hooks https://eventespresso.com/wiki/event-espresso-3-1-action-hooks/ |
|
Thanks for your response Dean. Do you know if we could perhaps add a trigger to the DB directly, or can you think of any other way that we could trigger an external update when the “Mark as Attended” button is used? This is the last part of the puzzle and we then have a really powerful application setup. Thanks a million Dean. |
|
Well, if it’s just for that sole site, then you could modify the API to add in a hook and use that. It would have to be updated each time the plugin is updated. In the ticket I submitted, I suggested adding hooks to two functions, _checkin and _checkout, both in the API plugin (includes/resources/3.1/EspressoAPI_Registrations_Resource.class.php) I’m not a developer so that might not be correct, but it looked fairly good to me. |
|
Thanks a lot for your time on this Dean. We will see what we can do with the API. Will let you know how it goes. Have an excellent day. |
|
Thanks Jason and yes please do let me know how you get on. |
|
Hi Dean. We don’t seem to have the file that you referred to above… Please let me know if we are looking in the wrong place. |
|
Hi Jason, The EspressoAPI_Registrations_Resource.php file is in the JSON API addon (I wasn’t sure if you were manually checking in from the admin which would be via files in the EE plugin or via the mobile apps which use the JSON API). |
|
Hi Dean We have got this right! The file that has a function that handles this is event_list_attendees.php. We have added a hook that we can use… see We now have EE talking seamlesley with Infusionsoft with generic campaigns handling full event management including post event correspondence for attendees and those that did not arrive (all handled from EE without the need to open Infusionsoft). It’s working amazingly. Cheers |
|
Awesome! Glad you got it sorted. I have added a feature request, but as always I can’t say if or when it would get added. |
The support post ‘API trigger on Event Attended.’ 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.