Support

Home Forums Event Espresso Premium Action Hook for Receiving Email Address on Step 2

Action Hook for Receiving Email Address on Step 2

Posted: August 24, 2017 at 8:42 am


lola communication

August 24, 2017 at 8:42 am

Looking for the Action Hook for receiving the email Address that’s submitted on Step 2 while on step 3 (if it even matters).

Also, the action hook to change the price of the ticket and its total on step 3.
(as I will change the price depending on certain emails).

Thanks in advance!
And can’t wait for when the EE4 documentation for hooks and filters are completed 😀


Josh

  • Support Staff

August 24, 2017 at 8:50 am

Hi lola communication,

The hooks and filters within EE4 are actually documented within the code itself, in many cases with PHP docblocks. So when you need to find a hook the recommended way is you can use an IDE or even the excellent debug bar plugin with the hooks and filters add-on.

One hook that you could use for getting registrant data like the email address is
AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed
and is located here:

https://github.com/eventespresso/event-espresso-core/blob/master/modules/single_page_checkout/reg_steps/finalize_registration/EE_SPCO_Reg_Step_Finalize_Registration.class.php#L91

Another action hook that you can use to modify the cart total is
AHEE__Single_Page_Checkout__before_payment_options__process_reg_step

You’ll find some example code that shows how to use the hook in this code snippet from the snippet library:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/bc_add_cart_modifier.php


lola communication

August 24, 2017 at 9:03 am

Ah! Yeah, I am using and an IDE and checking out all the action hooks. There’s so many that it’s easy for someone who is new to Event Espresso to become instantly lost for locating a specific hook.

Thanks for your help and putting me in the correct direction!


Josh

  • Support Staff

August 24, 2017 at 9:11 am

The excellent debug bar plugin with the hooks and filters add-on is very helpful for finding specific hooks on specific requests.

The support post ‘Action Hook for Receiving Email Address on Step 2’ 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