Hi, is there a hook in Event Espresso that fires after someone successfully registers for an event? We’re hoping to send signup data to a Freshsales CRM account via their API. Thanks.
For example do you only want this hook to fire when a registration is Approved (meaning they registered and either paid in full, registered onto a free ticket or the admin manually approved them), or is a successful registration one that finalizes regardless of payment?
Either scenario would be fine, though ideally the hook would fire after the registration has approved and their payment has been processed etc. If not, a hook that fires before the payment is approved would work too. Just trying to feel out our options. Thanks
Right now, the best example we have of doing what you are looking to do is within the MailChimp add-on, as you have access to all of the add-ons with your license I recommend downloading that add-on and taking a look at the code in use there as there’s a fair bit to what you need.
The core hooks used in that add-on are:
(To hook into the process once the attendee information has been submitted)
AHEE__EE_Single_Page_Checkout__process_attendee_information__end
(To hook into the process once registration has been complete, you can then determine what you want to do for just complete or approved registrations from there)
AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed
Those hooks are part of the Single Page Checkout process (SPCO for short) are are passed an instance of the SPCO checkout and relevant data. You can see how you can work through that data to get what you need within the Mailchimp add-on:
The support post ‘After Event Registration Hook’ 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.