Customising ticket email

Home Forums Ticket Products Event Tickets Plus Customising ticket email

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #143814
    jameslowey
    Participant

    I bought WooCommerce Tickets a few hours ago and have spent a while customising how everything looks. Customising the Ticket email seems less documented though – despite the WooCommerce Tickets plugin page saying: “Tickets are now html based emails instead of pdfs so you can customize these suckers to your hearts content.” Anyway, I’m not here to criticise: I’m really enjoying using it.

    From what I can tell, the usual email template is here: ‘/plugins/the-events-calendar/views/tickets/email.php’ so if I copy that to my themes folder so that I can safely edit it, that should be a good start.

    The variables that I need to display in my email are:
    – Event: title, start date, end date
    – Ticket: number, type, description
    – Purchaser: name, email address
    – Security code
    – Venue: name, address, city

    How would I go about including these?

    Thanks,
    James

    #144517
    Brook
    Participant

    Howdy jameslowey,

    We can all agree that our documentation needs improvement. It is something we are actively improving, and simultaneously developing a better platform for it. If you do ever have specific areas like this where you think we can improve the documentation on our site, or even our inline documentation in our code, please let us know. We welcome all feedback!

    The documentation for this is mostly inline. If you open  up that file, notice the comments at the top. This part in particular should help:

    * This file is being included in events/lib/tickets/tribe-tickets.php
    * in the function generate_tickets_email_content. That function has a $tickets
    * array with elements that have this fields:
    * $tickets[] = array( ‘event_id’,
    * ‘ticket_name’
    * ‘holder_name’
    * ‘order_id’
    * ‘ticket_id’
    * ‘security_code’)

    Then if you scroll down you will see an example use of the $tickets variable.

    Does that make sense? Any feedback or other questions? Please let me know. Cheers!

    – Brook

    #152819
    kvandeneede
    Participant

    I’m having the same problem.
    Trying to figure out how to get more information about the Ticket itself or even information of the event the ticket is for.
    I noticed the venue information can be retrieved so I guess the same should be possible for ticket and/or event.

    #209933
    Kris
    Participant

    do you have an example of a formatted event email to work off of?

    #211648
    Brook
    Participant

    Howdy Kris,

    The only example we have is the file found in ‘‘/plugins/the-events-calendar/views/tickets/email.php’. You can copy that file and follow our themer’s guide to create a modified version of it. The file itself has plentiful comments to guide you along.

    Just a note, as our forum rules state we try to keep our threads focused on just one user’s problem. This ensures that we are addressing your specific problem instead of a general group one, and not possibly missing anything unique your situation.

    To that end, if you need further assistance would you mind opening up a new topic here about your issue? If you could please detail in your own words exactly what your problem is (instead of just linking here), that will go a long way towards helping you get this issue resolved as fast as possible. I hope you understand our reasoning here and do not mind this extra step, we have just found it serves our users best.

    Thanks for posting!

    – Brook

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Customising ticket email’ is closed to new replies.