Home › Forums › Ticket Products › Event Tickets Plus › Event information needs to appear in ticket email
- This topic has 6 replies, 3 voices, and was last updated 11 years, 2 months ago by
Barry.
-
AuthorPosts
-
January 27, 2015 at 7:54 am #938075
Pierre
ParticipantHow 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.
KathyJanuary 27, 2015 at 8:55 am #938120Geoff
MemberHi 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!
GeoffFebruary 4, 2015 at 9:56 am #940006Geoff
MemberHey there, Pierre! Just checking in to see if you had any follow-up questions about customizing the email template. Please let me know. 🙂
Cheers!
GeoffFebruary 5, 2015 at 5:38 am #940207Pierre
ParticipantThank 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
February 5, 2015 at 9:03 am #940266Geoff
MemberHow 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!
GeoffFebruary 5, 2015 at 10:23 am #940300Pierre
ParticipantIn 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 againFebruary 5, 2015 at 1:54 pm #940353Barry
MemberHi 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 🙂
-
AuthorPosts
- The topic ‘Event information needs to appear in ticket email’ is closed to new replies.
