{"id":966037,"date":"2015-05-29T10:15:29","date_gmt":"2015-05-29T17:15:29","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-fields-for-tickets\/"},"modified":"2015-06-16T08:29:37","modified_gmt":"2015-06-16T15:29:37","slug":"custom-fields-for-tickets","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-fields-for-tickets\/","title":{"rendered":"Custom Fields for Tickets"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>I&#8217;m interested in being able to add custom fields to my tickets, but I&#8217;m not sure how to go about doing it. Right now, when different tickets to different events are purchased, all of the revenue gained is pooled into one spot. I wanted to be able to add a custom field (&#8220;cost_center&#8221; or &#8220;Cost Ctr#&#8221;) that would be different between events, if not between tickets, and would be visible as a column on CSV export so that I could see what revenue should be distributed where from that pool.<\/p>\n<p>I&#8217;m having difficulty finding where fields are defined for tickets, or where the back-end for tickets is being generated so I can manually add a new textarea to be filled out and saved as a property (cost_center) of each ticket in the database. I&#8217;ve found code for a custom CSV export to pull down the newly created columns all good and well, but I can&#8217;t for the life of me find anything on creating new fields on the back-end for the tickets.<\/p>\n<p>Any help would be appreciated.<\/p>\n","protected":false},"template":"","class_list":["post-966037","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>Custom Fields for Tickets -<\/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\/custom-fields-for-tickets\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Custom Fields for Tickets -\" \/>\n<meta property=\"og:description\" content=\"Hi there, I&#8217;m interested in being able to add custom fields to my tickets, but I&#8217;m not sure how to go about doing it. Right now, when different tickets to different events are purchased, all of the revenue gained is pooled into one spot. I wanted to be able to add a custom field (&#8220;cost_center&#8221; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-fields-for-tickets\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-06-16T15:29:37+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\/custom-fields-for-tickets\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-fields-for-tickets\/\",\"name\":\"Custom Fields for Tickets -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-05-29T17:15:29+00:00\",\"dateModified\":\"2015-06-16T15:29:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-fields-for-tickets\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-fields-for-tickets\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-fields-for-tickets\/#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\":\"Custom Fields for Tickets\"}]},{\"@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":"Custom Fields for Tickets -","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\/custom-fields-for-tickets\/","og_locale":"en_US","og_type":"article","og_title":"Custom Fields for Tickets -","og_description":"Hi there, I&#8217;m interested in being able to add custom fields to my tickets, but I&#8217;m not sure how to go about doing it. Right now, when different tickets to different events are purchased, all of the revenue gained is pooled into one spot. I wanted to be able to add a custom field (&#8220;cost_center&#8221; [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-fields-for-tickets\/","article_modified_time":"2015-06-16T15:29:37+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\/custom-fields-for-tickets\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-fields-for-tickets\/","name":"Custom Fields for Tickets -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-05-29T17:15:29+00:00","dateModified":"2015-06-16T15:29:37+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-fields-for-tickets\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-fields-for-tickets\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/custom-fields-for-tickets\/#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":"Custom Fields for Tickets"}]},{"@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\/966037","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\/966037\/revisions"}],"predecessor-version":[{"id":966139,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/966037\/revisions\/966139"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=966037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}