Home › Forums › Ticket Products › Event Tickets Plus › Moving the tickets form and changing PDF
- This topic has 5 replies, 3 voices, and was last updated 11 years, 3 months ago by Barry.
-
AuthorPosts
-
December 12, 2012 at 9:12 am #29305davidParticipant
Loving WooTickets so far, but have a couple of questions…
1. Currently, the tickets form displays at the very bottom of the event template. I need to change where this is called and display it higher up and can’t seem to find where the template is actually being included. Can you point me to the line of relevant code (or file) that actually brings the template in?
2. I need to change some of the layout on the PDF tickets and it looks like these are being created by this function: generate_attendees_PDF( $attendees) — but I can’t seem to find where this function lives. Any help you can offer would be most appreciated.
Thanks!
December 12, 2012 at 3:20 pm #29329BarryMemberHi David!
1) I suspect this is the line of code (in the single.php template) that you are looking for:
if (function_exists('tribe_get_ticket_form') && tribe_get_ticket_form()) { tribe_get_ticket_form(); }
2. We don’t recommend making changes to core plugin code, however you can find this in the TribeEventsTickets class (which lives in the-events-calendar/lib/tickets/tribe-tickets.php).
December 13, 2012 at 7:18 am #29383davidParticipantGreat! I’m not sure how I missed the call in the single.php template. Thanks!
Are there plans to support customization of the PDF tickets without modifying core in the future?
December 13, 2012 at 8:24 am #29386BarryMemberSort of, yeah. Quite a few people are showing interest in this and that’s been noted – it probably isn’t quite as high a priority as other feature requests, but it will hopefully come to fruition in the fullness of time.
December 27, 2012 at 11:14 am #30037Targeted VictoryParticipantBarry, on the features request board, you said “While not straightforward, exactly, I believe it is possible to do this without modifying core plugin code. It definitely could and probably should be easier, though.” I’ve made my changes to he-events-calendar/lib/tickets/tribe-tickets.php at this point. We are using the plugin for a conference, so there are many different tickets available for the events. I needed to have the ticket name itself show up on the ticket, not just the event name. Is there a better way to do this? I also have a registration question, but I’ll start a new thread for that.
Btw, thanks for providing forum support this week!
December 27, 2012 at 11:33 am #30039BarryMemberI’m tempted to explore this and write it up on my own blog as a bit of extra-curricular work (because I’m a geek and I find this interesting).
What WooTickets does though is utilize the woocommerce_email_attachments hook. The basic approach I would take to enable deeper customization is to stop WooTickets’ own code from running at this point and substitute my own.
Unfortunately, I can’t get into more depth “officially” since we’ve got a limited amount of bandwidth for support activities and it would consume quite a lot of time.
Btw, thanks for providing forum support this week!
No problem 🙂
-
AuthorPosts
- The topic ‘Moving the tickets form and changing PDF’ is closed to new replies.