Support

Home Forums Event Espresso Premium EE4 Printable Tickets for only certain events

EE4 Printable Tickets for only certain events

Posted: December 16, 2016 at 6:27 am


Heather

December 16, 2016 at 6:27 am

Hi all

I need to issue printable tickets for only certain events. Users sign up for many events in the same transaction, but I only want a printable ticket for one of these events. Some users would need to print 32 tickets in order to get the single event tickets that is needed.

I have tried to edit global ticket to no-html content and set the event that I do want a ticket issued to have ‘custom ticket’ html to have content. This however, does not work. I have also tried leaving global to normal and assigning a ‘custom ticket’ of no-ticket-content to other events. But this does not work either.

I will have 60+ disabled individuals standing in the cold tomorrow if I can’t get them a printable ticket 🙁

Ideas?


Josh

  • Support Staff

December 16, 2016 at 11:23 am

Hi there,

May I ask a few questions about how you have things set up so I have a better idea on how to go forward?

First, are you using the Multi Event Registration add-on to allow them to sign up for many events in the same transaction?

Second, which message types are being sent after a successful registration? e.g. Payment Received, Registration Approved, and/or Ticket Notice?


Josh

  • Support Staff

December 16, 2016 at 12:09 pm

Depending on how you have things set up, this may be one solution you can use:

At the top of the default HTML ticket template, there’s an opening div:

<div class="outside>

You can add a little “hook” to that div to identify the event that the ticket is for by changing the above to:

<div class="outside event-id-[EVENT_ID]">

Now you have a means to hide/show tickets based on the event ID. So for example, at the very top of the ticket template, you can add something like this:

<style>.outside{display:none;}
.event-id-123{display:block;}</style>

What this will do is only show the ticket for event 123. The other tickets will not be displayed if you’re using the [TXN_TICKETS_URL] short code or equivalent short code.

The support post ‘EE4 Printable Tickets for only certain events’ 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