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?
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:
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.
Support forum for Event Espresso 3 and Event Espresso 4.