{"id":1139086,"date":"2016-07-13T05:32:25","date_gmt":"2016-07-13T12:32:25","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/"},"modified":"2016-07-13T16:11:35","modified_gmt":"2016-07-13T23:11:35","slug":"single-event-php-override-prevents-display-of-ticket-attendee-information","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/","title":{"rendered":"single-event.php override prevents display of ticket attendee information"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>I&#8217;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.<\/p>\n<p>I have created a work around (as per git diff output below) but believe this needs an official bug fix:<\/p>\n<p><code><br \/>\n--- a\/www\/wp-content\/plugins\/event-tickets\/src\/Tribe\/Tickets_View.php<br \/>\n+++ b\/www\/wp-content\/plugins\/event-tickets\/src\/Tribe\/Tickets_View.php<br \/>\n@@ -49,7 +49,7 @@ public static function hook() {<br \/>\n}<\/code><\/p>\n<p>\/\/ Intercept Template file for Tickets<br \/>\n&#8211; add_filter( &#8216;tribe_events_template&#8217;, array( $myself, &#8216;intercept_template&#8217; ), 20, 2 );<br \/>\n+ add_filter( &#8216;tribe_events_template_single-event.php&#8217;, array( $myself, &#8216;intercept_template&#8217; ), 20, 1 );<\/p>\n<p>\/\/ We will inject on the Priority 4, to be happen before RSVP<br \/>\nadd_action( &#8216;tribe_events_single_event_after_the_meta&#8217;, array( $myself, &#8216;inject_link_template&#8217; ), 4 );<br \/>\n@@ -315,7 +315,7 @@ public function intercept_content( $content = &#8221; ) {<br \/>\n* @param string $template Which template we are dealing with<br \/>\n* @return string The correct File path for the tickets endpoint<br \/>\n*\/<br \/>\n&#8211; public function intercept_template( $old_file, $template ) {<br \/>\n+ public function intercept_template( $old_file ) {<br \/>\nglobal $wp_query;<\/p>\n<p>\/**<br \/>\n@@ -340,9 +340,9 @@ public function intercept_template( $old_file, $template ) {<br \/>\n}<\/p>\n<p>\/\/ If for some reason it&#8217;s not <code>single-event.php<\/code> we don&#8217;t care either<br \/>\n&#8211; if ( &#8216;single-event.php&#8217; !== $template ) {<br \/>\n&#8211; return $old_file;<br \/>\n&#8211; }<br \/>\n+ \/\/ if ( &#8216;single-event.php&#8217; !== $template ) {<br \/>\n+ \/\/ return $old_file;<br \/>\n+ \/\/ }<\/p>\n<p>\/\/ Fetch the Correct File using the Tickets Hiearchy<br \/>\n$file = Tribe__Tickets__Templates::get_template_hierarchy( &#8216;tickets\/orders.php&#8217; );<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-1139086","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>single-event.php override prevents display of ticket attendee information -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"single-event.php override prevents display of ticket attendee information -\" \/>\n<meta property=\"og:description\" content=\"Hi there, I&#8217;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: --- [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-07-13T23:11:35+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/\",\"name\":\"single-event.php override prevents display of ticket attendee information -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-07-13T12:32:25+00:00\",\"dateModified\":\"2016-07-13T23:11:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"single-event.php override prevents display of ticket attendee information\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"single-event.php override prevents display of ticket attendee information -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/","og_locale":"en_US","og_type":"article","og_title":"single-event.php override prevents display of ticket attendee information -","og_description":"Hi there, I&#8217;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: --- [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/","article_modified_time":"2016-07-13T23:11:35+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/","name":"single-event.php override prevents display of ticket attendee information -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-07-13T12:32:25+00:00","dateModified":"2016-07-13T23:11:35+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/single-event-php-override-prevents-display-of-ticket-attendee-information\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"single-event.php override prevents display of ticket attendee information"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1139086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1139086\/revisions"}],"predecessor-version":[{"id":1139412,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1139086\/revisions\/1139412"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1139086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}