Posted: March 17, 2022 at 3:41 pm
Hi, My mother in law wants to visit a concert and buyed a ticket on our side. |
|
I tried to add the following to my ticket, but after saving only the button is available with the function onclick=”windows.print()”
|
|
Same with: I add this to my ticket, but “onclick=”window.print();” disappearce after saving |
|
Hi there, The fields in the message templates are now sanitized differently to when the above suggestions of using inline JS were made. I’ve put together a snippet that will add a https://gist.github.com/Pebblo/8b5eaeb9c16d89073d64e1b7c8f78e00 You can set ‘title’, ‘alt’ and ‘text’ parameters on the shortcode:
With the above snippet/shortcode will output the same as what you have in the last example. — You can add that snippet to a custom functions plugin on your site, we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
Thx! Also my mother in law is happy now π |
|
Hope a ticket as pdf attachment in the mail is on the road map! |
|
Awesome π
We have discussed this previously and right now, it is not for a couple of reasons. We already run into issues with people’s emails when purchasing ticket, adding attachments complicates that more and could mean more email issues (which we don’t want). The ticket uses a QR/Barcode which is generated using a JS library within the browser, to be able to attach an PDF to an email we would need to switch out to use a different server based library to both generate the PDF and the QR’s. That’s all well and good and some are available, but as we are a distributed product that also comes with limitations on making sure the server has the correct modules installs etc. In short, it sounds like a nice easy feature to implement until you get to all the technicalities behind it and then realise that if it doesn’t work for 99% of users straight out of the box (based on server setup) it just adds more confusion and frustration for everyone. Anyway, just thought I’d give a quick glimpse of the bigger picture for this. I’m not saying we wont add a feature like this in the future but I can tell you it’s not due out any time soon π |
|
The support post ‘Print button on ticket 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.