Add content to emailed ticket

Home Forums Ticket Products Event Tickets Plus Add content to emailed ticket

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1202242
    Murray
    Participant

    I want to add the following content to my emailed tickets –

    Admit one per ticket. Limited seating available.

    How can I do that?

    Thanks!

    #1202352
    Cliff
    Member

    Hi, Murray.

    Please look inside this file: /wp-content/plugins/event-tickets/src/views/tickets/email.php

    and find any mention of “do_action” to discover the different action hooks that you or your developer could use to customize this for your needs.

    You can also reference these resources:

    #1202746
    Murray
    Participant

    Thanks, Cliff! So, to add an action to one of the action hooks, I would just create an add_action function in my theme’s functions.php file?

    This should do the trick, no?
    // ADD CONTENT TO EMAILED TICKET FOR NYE2016
    add_action(‘tribe_tickets_ticket_email_ticket_bottom’, ‘admit_one’);
    function admit_one() {
    return “

    Admit one per ticket. Limited seating available.

    “;
    }

    #1202832
    Cliff
    Member

    Instead of “return” in that function, you should probably do something like echo "Admit one per ticket. Limited seating available.";

    Let me know if that works for you.

    #1202933
    Murray
    Participant

    Yes, that worked fine, although I did it by jumping out of PHP and just specifying the HTML before going back into PHP to close the function. Thanks for the suggestion!

    Murray

    #1202949
    Cliff
    Member

    You bet. I’m glad you got something working for your needs. Have a great rest of your week 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Add content to emailed ticket’ is closed to new replies.