Different Content in Ticket-E-Mail and attached PDF-Tickets

Home Forums Ticket Products Event Tickets Plus Different Content in Ticket-E-Mail and attached PDF-Tickets

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1624986
    wz2018
    Participant

    I would like to display a different content in the Ticket-Email and the PDF-Tickets.
    How can I do this?

    PDFs should show only the complete tickets. Ticket-E-Mail should show a different text like: “Thank you for the order, please print the attached tickets.”

    #1626249
    Andras
    Keymaster

    Hi wz2018,

    Thanks for reaching out!

    Are you using our free Event Tickets Extension: PDF Tickets to get the PDFs generated?

    In this case I’m afraid it is not possible to have a different content in the PDF than in the email. The extension basically generates a PDF from the email that goes out. I will check with the developer if anything can be done about this.

    Please note though, that we do not support the extensions to the same degree as our mainstream products.

    If you would like to change the content of the email then please refer to our Themer’s Guide – https://theeventscalendar.com/knowledgebase/themers-guide/

    You will need to override

    wp-content/plugins/event-tickets/src/views/tickets/email.php

    Hope this helps.

    Cheers,
    Andras

    #1627047
    wz2018
    Participant

    – “Are you using our free Event Tickets Extension: PDF Tickets to get the PDFs generated?”
    – Yes, I am.
    – “In this case I’m afraid it is not possible to have a different content in the PDF than in the email.”
    – Is there another case where it would be possible?
    – Is there another extension?
    – Is there another way?

    I need the Tickets as PDF and I need an email with these PDFs that does not show the same content.

    #1627433
    Andras
    Keymaster

    I’m not aware of any other way and at the moment there is no other extension.

    I guess it would be possible with some custom development, however we do not have the bandwidth for that.

    An idea that came to me now, you could modify the email template and add different css rules for screen and for print. When it shows on the screen then you don’t see the “Thank you for the order…” sentence. When it goes to print (pdf), then it doesn’t show what you don’t need.

    Here’s some guidance on how you can do css media queries:

    https://www.w3schools.com/cssref/css3_pr_mediaquery.asp

    You will need ‘@media screen’ and ‘@media print’ I believe.

    Hope this helps.

    Cheers,
    Andras

    #1642624
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Different Content in Ticket-E-Mail and attached PDF-Tickets’ is closed to new replies.