{"id":1099790,"date":"2016-04-07T12:33:14","date_gmt":"2016-04-07T19:33:14","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/"},"modified":"2016-05-20T14:29:07","modified_gmt":"2016-05-20T21:29:07","slug":"overriding-tickets-php-in-a-child-theme-breaks-ticket-fields","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/","title":{"rendered":"Overriding tickets.php in a child theme breaks ticket fields"},"content":{"rendered":"<p>The directed method for making special customizations to the Tickets display form on an event is to copy the &#8220;event-tickets-plus\/src\/views\/wootickets\/tickets.php&#8221; file into your theme folder at &#8220;tribe-events\/wootickets\/tickets.php&#8221;. This works great! However, overriding the form like this breaks the ticket fields feature. When you start selecting a quantity of tickets, no fields appear!<\/p>\n<p>The cause of this is the statement on line 114 of the &#8216;tickets.php&#8217; template that includes the &#8220;meta.php&#8221; based on a relative path to the file:<br \/>\n  include dirname( __FILE__ ) . &#8216;\/..\/meta.php&#8217;;<\/p>\n<p>Obviously, copying over this template to the theme folder for overriding purposes is going to break that path.<\/p>\n<p>For now, I can just hard-code the path to &#8220;meta.php&#8221; in the template (&#8220;include WP_PLUGIN_DIR . &#8216;\/event-tickets-plus\/src\/views\/meta.php'&#8221;) to work around this, but this issue really should be fixed. Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-1099790","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>Overriding tickets.php in a child theme breaks ticket fields -<\/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\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Overriding tickets.php in a child theme breaks ticket fields -\" \/>\n<meta property=\"og:description\" content=\"The directed method for making special customizations to the Tickets display form on an event is to copy the &#8220;event-tickets-plus\/src\/views\/wootickets\/tickets.php&#8221; file into your theme folder at &#8220;tribe-events\/wootickets\/tickets.php&#8221;. This works great! However, overriding the form like this breaks the ticket fields feature. When you start selecting a quantity of tickets, no fields appear! The cause of [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-20T21:29:07+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\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/\",\"name\":\"Overriding tickets.php in a child theme breaks ticket fields -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-04-07T19:33:14+00:00\",\"dateModified\":\"2016-05-20T21:29:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/#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\":\"Overriding tickets.php in a child theme breaks ticket fields\"}]},{\"@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":"Overriding tickets.php in a child theme breaks ticket fields -","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\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/","og_locale":"en_US","og_type":"article","og_title":"Overriding tickets.php in a child theme breaks ticket fields -","og_description":"The directed method for making special customizations to the Tickets display form on an event is to copy the &#8220;event-tickets-plus\/src\/views\/wootickets\/tickets.php&#8221; file into your theme folder at &#8220;tribe-events\/wootickets\/tickets.php&#8221;. This works great! However, overriding the form like this breaks the ticket fields feature. When you start selecting a quantity of tickets, no fields appear! The cause of [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/","article_modified_time":"2016-05-20T21:29:07+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\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/","name":"Overriding tickets.php in a child theme breaks ticket fields -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-04-07T19:33:14+00:00","dateModified":"2016-05-20T21:29:07+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/overriding-tickets-php-in-a-child-theme-breaks-ticket-fields\/#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":"Overriding tickets.php in a child theme breaks ticket fields"}]},{"@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\/1099790","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\/1099790\/revisions"}],"predecessor-version":[{"id":1099814,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1099790\/revisions\/1099814"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1099790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}