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.
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.
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.
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.
It will help to know which shortcodes you tried and where. The Receipt message type will accept the [EVENT_META_*] shortcode.
Viewing 7 reply threads
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.
Support forum for Event Espresso 3 and Event Espresso 4.