Ticket as PDF … again

Home Forums Ticket Products Event Tickets Plus Ticket as PDF … again

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #953771
    niggo
    Participant

    Unfortunately this thread is closed:

    Ticket email / PDF?

    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/default

    I 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.

    #953779
    niggo
    Participant

    TCPDF (www.tcpdf.org) looks like another (and better documented) solution…

    #953960
    niggo
    Participant

    Can somebody tell me where the function is that creates/sends the email?

    Thanks,
    n.

    #954174
    Josh
    Participant

    Hey 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!

    #983987
    Support Droid
    Keymaster

    This 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Ticket as PDF … again’ is closed to new replies.