Event information needs to appear in ticket email

Home Forums Ticket Products Event Tickets Plus Event information needs to appear in ticket email

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #938075
    Pierre
    Participant

    How can I include the event description in the ticket email that the customer receives after the order is complete.
    The actual tickets. And then I don’t want the event description to appear on the website.

    We are selling tickets for classes via conference call and people have to purchase a ticket before they receive the phone number.
    However not all classes are like that, some are in person. So it seems the easiest way to have unique tickets is to include the event description which can be different for each one.

    Or perhaps there is a custom field I can use for this purpose.

    Thanks in advance for your help.
    Kathy

    #938120
    Geoff
    Member

    Hi there, Pierre! Thanks for getting in touch.

    Good question. You best best is to customize the email.php template by overriding it and modifying it from there. In this case you will:

    • Make a copy of the file (located in /plugins/the-events-calendar/views/tickets/email.php)
    • Create a new folder in your theme directory called tribe-events
    • Create a new folder inside there called tickets
    • Drop your copied email.php template in that folder

    These steps are more thoroughly detailed in our Themer’s Guide. I highly suggest checking that out for more info.

    Now that the template is in your theme files, you can customize it to suit your needs. For example, you can drop the following in where needed to display the post content:

    <?php echo $event->post_content; ?>

    We’re pretty limited in providing support for custom development questions, but I hope this helps point you in the right direction. 🙂

    Cheers!
    Geoff

    #940006
    Geoff
    Member

    Hey there, Pierre! Just checking in to see if you had any follow-up questions about customizing the email template. Please let me know. 🙂

    Cheers!
    Geoff

    #940207
    Pierre
    Participant

    Thank you Geoff for following up.
    I’ve successfully made the email.php and now the post description appears in the ticket email.
    <?php echo $event->post_content; ?>

    How do I show a custom value in the email? I have one named Conference_Call and the value is the phone number.
    I don’t want people to see the phone number for the conference call until they have purchased a ticket to the event.
    So it should only display in the email.

    Can you give me an example of the code?
    Here’s what I tried – I’m just a hack…doesn’t work
    <?php echo $event->post_custom_value; ?>

    thanks for your support and your time

    #940266
    Geoff
    Member

    How about using the post excerpt instead? That would allow you to write a sunmary for the event and drop it in to the email as well.

    Cheers!
    Geoff

    #940300
    Pierre
    Participant

    In the default event template the post excerpt shows up as a tooltip in the monthly calendar view – I had it displayed in the ticket email, then discovered it was showing on the calendar. Dont know how to supress it in the calendar view.
    Don’t want the phone number visible on the website.
    thanks again

    #940353
    Barry
    Member

    Hi Pierre,

    Geoff’s out this week so I thought I’d drop in and see how the topic was progressing 🙂

    In the default event template the post excerpt shows up as a tooltip in the monthly calendar view – I had it displayed in the ticket email, then discovered it was showing on the calendar. Dont know how to supress it in the calendar view.

    OK, so how about a custom field? This could either be a regular WordPress custom field or – if you invest in PRO – our richer additional fields system. If you want to stick with what WordPress offers there are lots of useful articles on working with their API to help get you started, like this one.

    I do wish you luck but I don’t think there’s too much more we can offer on this one – given it’s very much customization territory – and so I’ll go ahead and close out this topic.

    Of course if we can help with anything else please don’t hesitate to create a new support topic and one of the team will be only too happy to assist 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Event information needs to appear in ticket email’ is closed to new replies.