Add custom text to email ticket

Home Forums Ticket Products Event Tickets Plus Add custom text to email ticket

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1013963
    Elin
    Participant

    Want to add a custom text to the ticket that’s being sent by mail. Is that possible?

    #1014049
    George
    Participant

    Hey @Elin,

    This is possible but unfortunately only by customizing the tickets email templates in your plugins as described here → https://theeventscalendar.com/knowledgebase/themers-guide/

    We don’t offer support for custom code but that guide covers a lot of details about this that should help immensely.

    Let me know if that’s the case!

    Cheers,
    George

    #1014388
    Elin
    Participant

    I rephrase my question:
    If i want this text below on the ticket where exactly should i put it?

    “Lorem ipsum dolor questionens”

    #1014550
    George
    Participant

    Hey @Elin!

    Using the principles in that Themer’s Guide I linked to above, you would make a customizable version of this file in The Events Calendar:


    the-events-calendar/src/views/tickets/email.php

    You’ll find a while bunch of code there and you can place the text there.

    A SIMPLER METHOD

    For your specific question, there is also one other method you can use. It’s much, much simpler, and just requires pasting some code into your theme’s functions.php file.

    Please note, however, that this only adds the code to the very, very bottom of the email – e.g. the bottom-most item in the email, the last text in the very bottom.

    If that’s fine, then you can add your lorem ipsum text or any other text or HTML there by adding code like this in your theme’s functions.php file:


    if ( function_exists( 'tribe_get_events' ) ) {

    function tribe_support_1013963() {
    ob_start(); ?>

    <p>Lorem ipsum dolor questionens</p>

    <?php echo ob_get_clean();
    }

    add_action( 'tribe_tickets_ticket_email_bottom', 'tribe_support_1013963' );
    }

    I hope that helps!
    George

    #1019716
    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 ‘Add custom text to email ticket’ is closed to new replies.