Support

Home Forums Event Espresso Premium Data objects available on thank you page

Data objects available on thank you page

Posted: November 21, 2014 at 10:05 pm

Viewing 2 reply threads


Eversion Systems

November 21, 2014 at 10:05 pm

I’m writing some code that needs to reference the number of a certain type of ticket once a gateway transaction has been made. I’m using the hook AHEE__thank_you_page_overview_template__top to fire my code but I am not sure what data objects are available at that time for me to check the number of a specific ticket purchased. Any ideas?


Josh

  • Support Staff

November 24, 2014 at 12:15 pm

Hi there,

You might try the AHEE__thank_you_page_overview_template__content or the AHEE__thank_you_page_overview_template__bottom hooks because the $transaction argument is sent to those hooks. Then you can see what’s available with the kint debugging tool with a little debug code:

d($transaction);

There’s more developer specific documentation on the topic of customizing the Thank You page in EE4 that you might find helpful as well:

http://developer.eventespresso.com/tutorial/customizing-the-event-espresso-thank-you-page/


Eversion Systems

November 26, 2014 at 12:00 am

Found a perfect hook, AHEE__EE_Single_Page_Checkout__process_finalize_registration__before_gateway

Cheers!

Viewing 2 reply threads

The support post ‘Data objects available on thank you page’ 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