{"id":1061433,"date":"2016-01-24T16:43:03","date_gmt":"2016-01-25T00:43:03","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/"},"modified":"2016-02-20T08:35:04","modified_gmt":"2016-02-20T16:35:04","slug":"adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/","title":{"rendered":"Adding Category to Ticket in Woo &#8211; Overridding via Themer&#039;s Guide not working."},"content":{"rendered":"<p>I found this thread which allows me to add the category of \u201cTicket\u201d to each event using Events Ticket Plus (needed a category so I can add a custom field in Woocommerce only on the ticket products with the category of \u201cTicket\u201d) https:\/\/theeventscalendar.com\/support\/forums\/topic\/missing-function-in-event-tickets-plus\/<br \/>\nby adding this to line 510<br \/>\n\/\/add ticket category to ticket<br \/>\nwp_set_object_terms( $ticket-&gt;ID, \u2018Ticket\u2019, \u2018product_cat\u2019, true );<\/p>\n<p>I added the code to the file in the plugins folder and naturally it worked. But I need to add it to the override folder inside my theme folder as directed in your Themer\u2019s Guide.<br \/>\nI tried adding to [theme-name]\/tribe-events\/tickets\/src\/Tribe\/Commerce\/WooCommerce\/main.php but it didn\u2019t work. I am missing something? Should the first sub folder be called something else? I tried tickets-plus but that didn\u2019t work either.<br \/>\nThanks<br \/>\nMelanie<\/p>\n","protected":false},"template":"","class_list":["post-1061433","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>Adding Category to Ticket in Woo - Overridding via Themer&#039;s Guide not working. -<\/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\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding Category to Ticket in Woo - Overridding via Themer&#039;s Guide not working. -\" \/>\n<meta property=\"og:description\" content=\"I found this thread which allows me to add the category of \u201cTicket\u201d to each event using Events Ticket Plus (needed a category so I can add a custom field in Woocommerce only on the ticket products with the category of \u201cTicket\u201d) https:\/\/theeventscalendar.com\/support\/forums\/topic\/missing-function-in-event-tickets-plus\/ by adding this to line 510 \/\/add ticket category to ticket wp_set_object_terms( [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-20T16:35:04+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\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/\",\"name\":\"Adding Category to Ticket in Woo - Overridding via Themer&#039;s Guide not working. -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-01-25T00:43:03+00:00\",\"dateModified\":\"2016-02-20T16:35:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/#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\":\"Adding Category to Ticket in Woo &#8211; Overridding via Themer&#039;s Guide not working.\"}]},{\"@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":"Adding Category to Ticket in Woo - Overridding via Themer&#039;s Guide not working. -","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\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/","og_locale":"en_US","og_type":"article","og_title":"Adding Category to Ticket in Woo - Overridding via Themer&#039;s Guide not working. -","og_description":"I found this thread which allows me to add the category of \u201cTicket\u201d to each event using Events Ticket Plus (needed a category so I can add a custom field in Woocommerce only on the ticket products with the category of \u201cTicket\u201d) https:\/\/theeventscalendar.com\/support\/forums\/topic\/missing-function-in-event-tickets-plus\/ by adding this to line 510 \/\/add ticket category to ticket wp_set_object_terms( [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/","article_modified_time":"2016-02-20T16:35:04+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\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/","name":"Adding Category to Ticket in Woo - Overridding via Themer&#039;s Guide not working. -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-01-25T00:43:03+00:00","dateModified":"2016-02-20T16:35:04+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-category-to-ticket-in-woo-overridding-via-themers-guide-not-working\/#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":"Adding Category to Ticket in Woo &#8211; Overridding via Themer&#039;s Guide not working."}]},{"@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\/1061433","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\/1061433\/revisions"}],"predecessor-version":[{"id":1061478,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1061433\/revisions\/1061478"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1061433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}