Support

Home Forums Ticketing Add-on Display Links to All Tickets Purchased on Confirmation Page

Display Links to All Tickets Purchased on Confirmation Page

Posted: August 25, 2014 at 3:18 pm


saada

August 25, 2014 at 3:18 pm

Is it possible to show a link to all of the ticket types purchased for an event on the confirmation page? We would like the user to be able to print these immediately instead of solely relying on the email.

Also, is it possible to change the output text of the [ticket_link] shortcode? We want it to only display the URL and not the name.


Josh

  • Support Staff

August 26, 2014 at 7:39 am

Hi there,

You’d likely build a custom ticket ticket template tag to accomplish this, and information on where you’d place the code (along with some example code) can be found in this related thread:

https://eventespresso.com/topic/editing-thank-you-page-text-and-adding-a-ticket-link/


saada

August 26, 2014 at 8:20 am

Does this code work with Multiple Events Registration? This seems to only work with a single ticket type, but not all ticket types that were purchased. For example, if 2 adult tickets and 2 child tickets were purchased, there is only a single link for the 2 adult tickets.


Tony

  • Support Staff

August 27, 2014 at 12:57 pm

No that code does not work with MER.

A custom function would be needed to build the links for all the tickets within a MER registration.

I would recommend contacting one of our recommended developers available here:

https://eventespresso.com/developers/event-espresso-pros/


Josh

  • Support Staff

August 27, 2014 at 1:32 pm

Hi there,

In order to make this work with Multi Event Registration you will need to loop through each attendee. The following gist has some example code that shows one way to do this:

https://gist.github.com/joshfeck/945cd05eb792c74481b4


saada

September 10, 2014 at 1:47 pm

Thanks. We got this working. Is there any way to display the [ticket_type] shortcode on this page as well?


saada

September 10, 2014 at 1:51 pm

To be clear, this is on the ‘payment_overview.php’ template.


Josh

  • Support Staff

September 11, 2014 at 8:19 am

Hi there,

The [ticket_type] shortcode is only available for use in the email templates. Instead, you can alter the query I showed you earlier so that when it loops through each registration in the session it also has the ticket type. Example code follows:

https://gist.github.com/joshfeck/945cd05eb792c74481b4

The support post ‘Display Links to All Tickets Purchased on Confirmation 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