Support

Home Forums Event Espresso Premium After Event Registration Hook

After Event Registration Hook

Posted: February 15, 2023 at 3:59 pm

Viewing 4 reply threads


Brandon Gannon

February 15, 2023 at 3:59 pm

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.


Tony

  • Support Staff

February 16, 2023 at 2:01 pm

Hi there,

Can you define ‘successfully registers’?

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?


Brandon Gannon

February 16, 2023 at 4:20 pm

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


Brandon Gannon

February 21, 2023 at 10:49 am

Just following up on this, thanks


Tony

  • Support Staff

February 28, 2023 at 12:06 pm

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:

\eea-mailchimp\includes\EE_MCI_Controller.class.php::mci_submit_to_mailchimp()

Viewing 4 reply threads

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.

Event Espresso