Support

Home Forums Event Espresso Premium Get date, title, description, location, organizer, and organizer email on Thank

Get date, title, description, location, organizer, and organizer email on Thank

Posted: February 22, 2017 at 6:51 am

Viewing 1 reply thread


bfi

February 22, 2017 at 6:51 am

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>

We are using version 4.9
Jamie


Tony

  • Support Staff

February 22, 2017 at 8:45 am

Hi Jamie,

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:

https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System

A couple of examples of this in use:

https://gist.github.com/Pebblo/ff10c717dbef698ff7fbe357dedfd1a1

https://gist.github.com/Pebblo/9e375a3f6f3eb3e0e2aa88f3ef2fb72f

Viewing 1 reply thread

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.

Event Espresso