Support

Home Forums Event Espresso Premium How do it assign the PDF messenger to a custom message template?

How do it assign the PDF messenger to a custom message template?

Posted: November 27, 2015 at 8:15 am


Linda Isarasakdi

November 27, 2015 at 8:15 am

I’ve created a custom message template and styled it to create a custom ticket for printing out. We’d like to have it generated as a PDF, and I can see in the custom template settings that PDF is one of the messenger choices. I’m not seeing in the interface or in the documentation how to switch the ticket’s HTML messenger type to PDF.


Josh

  • Support Staff

November 27, 2015 at 8:56 am

Hi Linda,

The reason you’re not seeing this in the documentation is because the ticket message type needs to be generated as html. We looked into adding support for PDF downloading for tickets and we found that the barcode generator library that Event Espresso uses will not generate the barcodes into a PDF.


Linda Isarasakdi

November 27, 2015 at 9:48 am

Since we’re not using barcodes for our tickets, any chance we can use a function to turn on PDF for the ticket message type?


Josh

  • Support Staff

November 27, 2015 at 11:49 am

I’m afraid it will take more than a function to add PDF support to the ticket message type. From what I can see, it would involve registering a new message type that includes the PDF messenger.

A simpler option that you can do is use either the Invoice or Receipt message templates to make your custom tickets. If you’re not already using both of these, one can be used to print a custom ticket and their default templates include the PDF download button shortcode.


Linda Isarasakdi

December 3, 2015 at 3:18 pm

Thanks Josh – the invoice/receipt route may work for us, assuming that removing all HTML from the Event List section will make it completely disappear in the final product, in other words, that an empty Event List section doesn’t still produce some built-in elements. Will test this shortly.


Josh

  • Support Staff

December 3, 2015 at 6:03 pm

You can actually remove the [EVENT_LIST] shortcode and the div that wraps it right from the Main Content section to remove that section.


Linda Isarasakdi

December 4, 2015 at 9:32 am

I tried the Receipt messenger, but unfortunately it did not accept Custom Fields or the registrant shortcodes we’re using in the Ticket messenger.


Josh

  • Support Staff

December 4, 2015 at 12:38 pm

Hi Linda,

It will help to know which shortcodes you tried and where. The Receipt message type will accept the [EVENT_META_*] shortcode.

The support post ‘How do it assign the PDF messenger to a custom message template?’ 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