Home › Forums › Ticket Products › Event Tickets Plus › Ticket as PDF … again
- This topic has 4 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
April 7, 2015 at 10:08 am #953771
niggo
ParticipantUnfortunately this thread is closed:
But maybe we can figure out a solution together? There is at least James who is interested in such a solution…
I think I can solve the problem with this script:
http://html2pdf.fr/en/defaultI would have change the mail-Template to something like this, that’s no problem:
<?php $content = " <page> <h1>Exemple d'utilisation</h1> <br> Ceci est un <b>exemple d'utilisation</b> de <a href='http://html2pdf.fr/'>HTML2PDF</a>.<br> </page>"; require_once(dirname(__FILE__).'/html2pdf/html2pdf.class.php'); $html2pdf = new HTML2PDF('P','A4','fr'); $html2pdf->WriteHTML($content); $html2pdf->Output('exemple.pdf'); ?>My problem is: How do I get to send this PDF as an attachment? Where is the related function?
Maybe somebody from the team or any other user has an idea…?
Thanks,
n.April 7, 2015 at 10:32 am #953779niggo
ParticipantTCPDF (www.tcpdf.org) looks like another (and better documented) solution…
April 8, 2015 at 12:47 am #953960niggo
ParticipantCan somebody tell me where the function is that creates/sends the email?
Thanks,
n.April 8, 2015 at 1:23 pm #954174Josh
ParticipantHey niggo,
Thanks for reaching out to us!
I would suggest adding your vote to our UserVoice page for this but it looks like you’ve beat me to that 🙂
This is definitely an interesting idea. If you wanted to create a plugin for this feature, we would be happy to look over it as a potential solution to suggest to others as they request this feature.
For the files associated with the email, these are split between the core Events Calendar plugin (lib/tickets and views/tickets folders). Other functionality is included within the premium add-on for the associated cart plugin. For example, the WooCommerce tickets plugin extends the WC_Email class available within WooCommerce to handle the emailing of the tickets. You can find this within the WooCommerce Tickets plugin within the classes/class-ticket-email.php file.
Let me know if this helps.
Thanks!
July 7, 2015 at 6:31 am #983987Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Ticket as PDF … again’ is closed to new replies.
