I’m trying to add some custom code to the Thank You screen, but i’m struggling to find a way to get the data i need.
At the end of a booking, i’m using a custom page-thank-you.php page which has: <?php echo do_shortcode('[ESPRESSO_THANK_YOU]'); ?>
included to output the thankyou message and the usual details and links.
What i would like to be able to do is also gather some information about the booked event(s) so i can add some pertinent information.
Specifically i’d like to be able to detect the Event Venue values of the booked events so i can show some information relevant to the particular venue(s) taht have been booked.
Is there a function or hook of some kind i can use to grab those details here?
Use the transaction object to pull in the registrations:
$registrations = $transaction->registrations();
From there you’ll have an array of EE_Registration objects. Every registration could be from a different event if using Multi Event Registration, so what you do from that point depends on your specific use case but that should get you most of the way.
Viewing 1 reply thread
The support post ‘Get venue information on Thank You screen’ 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.