Home › Forums › Ticket Products › Event Tickets Plus › single-event.php override prevents display of ticket attendee information
- This topic has 6 replies, 5 voices, and was last updated 9 years, 7 months ago by
Bella.
-
AuthorPosts
-
July 13, 2016 at 5:32 am #1139086
Bella
ParticipantHi there,
I’ve needed to override the main single-events.php file from the the-events-calendar plugin folder to fit it in the style of our theme, however it has prevented the display from orders-tickets.php in events-tickets-plus.
I have created a work around (as per git diff output below) but believe this needs an official bug fix:
--- a/www/wp-content/plugins/event-tickets/src/Tribe/Tickets_View.php
+++ b/www/wp-content/plugins/event-tickets/src/Tribe/Tickets_View.php
@@ -49,7 +49,7 @@ public static function hook() {
}// Intercept Template file for Tickets
– add_filter( ‘tribe_events_template’, array( $myself, ‘intercept_template’ ), 20, 2 );
+ add_filter( ‘tribe_events_template_single-event.php’, array( $myself, ‘intercept_template’ ), 20, 1 );// We will inject on the Priority 4, to be happen before RSVP
add_action( ‘tribe_events_single_event_after_the_meta’, array( $myself, ‘inject_link_template’ ), 4 );
@@ -315,7 +315,7 @@ public function intercept_content( $content = ” ) {
* @param string $template Which template we are dealing with
* @return string The correct File path for the tickets endpoint
*/
– public function intercept_template( $old_file, $template ) {
+ public function intercept_template( $old_file ) {
global $wp_query;/**
@@ -340,9 +340,9 @@ public function intercept_template( $old_file, $template ) {
}// If for some reason it’s not
single-event.phpwe don’t care either
– if ( ‘single-event.php’ !== $template ) {
– return $old_file;
– }
+ // if ( ‘single-event.php’ !== $template ) {
+ // return $old_file;
+ // }// Fetch the Correct File using the Tickets Hiearchy
$file = Tribe__Tickets__Templates::get_template_hierarchy( ‘tickets/orders.php’ );Thanks
July 13, 2016 at 4:13 pm #1139413Cliff
MemberHi Diane.
It sounds like you’re experiencing one of our known bugs if this is what you’re experiencing:
1. add an event with an RSVP ticket
2. submit an RSVP to this event (with the email address of the account you’re currently logged in as)
3. view this event’s front-end display and notice the “View Your RSVPs” link to this-events-slug/tickets and that it works fine
4. copy the-events-calendar/src/views/single-event.php to yourtheme/tribe-events/single-event.php but don’t make any changes to it
5. view this-events-slug/ then click the “View Your RSVPs” link to this-events-slug/tickets page again
6. notice it just refreshed/reloaded the this-events-slug/ pageI’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now. They need to assign it, code it, test it, and schedule it for release. I apologize for this issue and appreciate your understanding and patience.
And thank you for your suggested resolution!
July 14, 2016 at 3:29 am #1139552Bella
ParticipantThanks Cliff
July 14, 2016 at 5:06 am #1139556Cliff
MemberYou bet! Please note that even if this thread gets closed due to inactivity (automatically happens after 2 weeks), this thread should still get a reply added once the fix is released.
August 26, 2016 at 4:19 pm #1156568Nico
MemberHi there,
Just wanted to give you a heads up that the maintenance release that went out recently has a fix for this issue. Please update when you have a chance and please do let us know if you continue to see this or any other issue happen — we’d be happy to help.
Thanks, hope you have a great weekend,
NicoSeptember 17, 2016 at 9:35 am #1165514Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘single-event.php override prevents display of ticket attendee information’ is closed to new replies.
