We are using a bit of javascript to add the events to a calendar. It needs some information adding into the code to define the start and end date, title, description, location, organiser, and organiser of the event. this is being used on the thank you page, in a file called thank-you-page-overview.template.php which is in the child theme folder. Is there a way of getting these values individually so they can be added to a code? example code:
<var class="atc_date_start">2017-05-04 12:00:00</var>
<var class="atc_date_end">2017-05-04 18:00:00</var>
<var class="atc_timezone">Europe/London</var>
<var class="atc_title">Star Wars Day Party</var>
<var class="atc_description">May the force be with you</var>
<var class="atc_location">Tatooine</var>
<var class="atc_organizer">Luke Skywalker</var>
<var class="atc_organizer_email">luke@starwars.com</var>
That information is from the event, on the thank you page using the template file you mentioned you have the EE_Transaction object within $transaction.
You can use our model system to pull the EE_Event object(s) from the registration(s) assigned to that transaction object and then use those to output all of the information you need, for information on the model system take a look here:
The support post ‘Get date, title, description, location, organizer, and organizer email on Thank’ 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.