Adding Text to Ticket Emails

Home Forums Ticket Products Event Tickets Plus Adding Text to Ticket Emails

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1096237
    Kathryn
    Participant

    I need to add a couple of paragraphs to the ticket email (the one that comes through with the QR code). Based on another discussion I found on the support forum, I looked in src/Tribe/Commerce/WooCommerce/Email.php. I don’t know much PHP, but I can tell there’s not really any HTML in there.

    Searching through the files, I found src/Tribe/Meta/Render.php, which looks like it’s generating some of the HTML used in the email. I tried adding my static text in the table starting on line 86, but it didn’t come through in the next email test.

    If someone can tell me what file (and a line number if you can, haha) where I can add this, I would really appreciate it. I just need to drop in some static text… I really thought this was going to be easy, but I’ve been spinning my wheels on this for about 3 hours.

    #1096911
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can help out here.

    You want to look for this file:

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

    And then move it here in your theme:

    yourtheme/tribe-events/tickets/email.php

    Not sure where you want to add the text, but you could try right after the </table> tag on line 421.

    Let me know how that works out.

    Cheers

    #1097676
    Kathryn
    Participant

    Yes, that’s what I was looking for. Thanks for the help!

    #1097863
    Brian
    Member

    Great, glad it helps, I am going to go ahead and close this ticket, but if you need help on this or something else please post a new ticket.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Adding Text to Ticket Emails’ is closed to new replies.