Add event information to confirmation mail

Home Forums Ticket Products Event Tickets Plus Add event information to confirmation mail

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1128350
    Pierre Kindler
    Participant

    Hi,

    I’ve already added several event and ticket information to the customer’s confirmation mail like start date, end date etc.
    But I couldn’t find a way to add the event’s description and category.
    Has anyone a snippet for this?

    Thanks, Pierre

    #1128446
    Brook
    Participant

    Howdy Pierre,

    That’s a good question. You’d think this might be easy in WordPress it’s surprisingly difficult to call the content of post outside of the loop. This article outlines the simplest way to do it.

    I am assuming that you added the start dates and such by overriding /event-tickets/src/views/tickets/email.php using our Themer’s Guide  . That’s perfect. You could add the content similarly. But keep in mind a user can buy tickets from multiple events at once, thus you will not be able to show only one piece of content rather you will have to show the content for each event. You can get the current event ID inside of the loop by checking the $event variable, and from there list the content using the article I linked.

    Likewise you can list the taxonomies (categories) inside of the loop by calling echo tribe_get_event_taxonomy( $event ); inside of the loop.

    This might make for a very long email when there are multiple tickets/events. But it will get all of the info in there. 🙂

    Does that all make sense? Will that work for you? Please let me know.

    Cheers!

    – Brook

    #1133303
    Pierre Kindler
    Participant

    Hey Brook,

    Sorry for the delay!
    That definitely helped me.

    Thanks, Pierre

    #1133809
    Brook
    Participant

    Excellent! Happy to hear it. Let us know if you ever need anything else. Cheers!

    – Brook

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add event information to confirmation mail’ is closed to new replies.