{"id":64022,"date":"2013-09-01T22:47:01","date_gmt":"2013-09-02T05:47:01","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/default-tickets-automatically-add-predefined-tickets\/"},"modified":"2015-07-07T06:28:42","modified_gmt":"2015-07-07T13:28:42","slug":"default-tickets-automatically-add-predefined-tickets","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/default-tickets-automatically-add-predefined-tickets\/","title":{"rendered":"&quot;default&quot; tickets (automatically add predefined tickets)"},"content":{"rendered":"<p>I am building a site for a venue that will have around 5 ticketed events each week. There are always 3 &#8220;tickets&#8221; per event. The reason for this is that I need to have &#8220;add-ons&#8221; for each ticket and the easiest thing is to consider those to also just be tickets (with only the actual ticket getting the taxes\/fees): Ticket, Membership, parking pass. The number of tickets is variable (from 300 to 450) , but that last item is always limited to 45. I have no desire to make users enter (or copy\/paste) the exact same title and description for those items each time they create an event. The only thing that will change is the ticket price. Not *all* events have tickets, therefore I do need a button click to &#8220;add tickets&#8221; to those events that need them. I am basically trying to make &#8220;Add Ticket&#8221; populate the DB with the set values and only ask the user for the thing that changes: the ticket price.<\/p>\n<p>So! My question is: can you provide some hints or suggestions on the best way to approach this? FWIW I just added back the PDF file attachment (along w\/ QR code) and it took some heavy lifting. It&#8217;d be nice to get a head start from ppl more familiar with the code. Just looking for a quick &#8220;look at function X in file.php and also look at obfuscated.js&#8221; kind of thing. Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-64022","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>&quot;default&quot; tickets (automatically add predefined 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\/default-tickets-automatically-add-predefined-tickets\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;default&quot; tickets (automatically add predefined tickets) -\" \/>\n<meta property=\"og:description\" content=\"I am building a site for a venue that will have around 5 ticketed events each week. There are always 3 &#8220;tickets&#8221; per event. The reason for this is that I need to have &#8220;add-ons&#8221; for each ticket and the easiest thing is to consider those to also just be tickets (with only the actual [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/default-tickets-automatically-add-predefined-tickets\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-07T13:28:42+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\/default-tickets-automatically-add-predefined-tickets\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/default-tickets-automatically-add-predefined-tickets\/\",\"name\":\"&quot;default&quot; tickets (automatically add predefined tickets) -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2013-09-02T05:47:01+00:00\",\"dateModified\":\"2015-07-07T13:28:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/default-tickets-automatically-add-predefined-tickets\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/default-tickets-automatically-add-predefined-tickets\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/default-tickets-automatically-add-predefined-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\":\"&quot;default&quot; tickets (automatically add predefined 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":"&quot;default&quot; tickets (automatically add predefined 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\/default-tickets-automatically-add-predefined-tickets\/","og_locale":"en_US","og_type":"article","og_title":"&quot;default&quot; tickets (automatically add predefined tickets) -","og_description":"I am building a site for a venue that will have around 5 ticketed events each week. There are always 3 &#8220;tickets&#8221; per event. The reason for this is that I need to have &#8220;add-ons&#8221; for each ticket and the easiest thing is to consider those to also just be tickets (with only the actual [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/default-tickets-automatically-add-predefined-tickets\/","article_modified_time":"2015-07-07T13:28:42+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\/default-tickets-automatically-add-predefined-tickets\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/default-tickets-automatically-add-predefined-tickets\/","name":"&quot;default&quot; tickets (automatically add predefined tickets) -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2013-09-02T05:47:01+00:00","dateModified":"2015-07-07T13:28:42+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/default-tickets-automatically-add-predefined-tickets\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/default-tickets-automatically-add-predefined-tickets\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/default-tickets-automatically-add-predefined-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":"&quot;default&quot; tickets (automatically add predefined 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\/64022","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\/64022\/revisions"}],"predecessor-version":[{"id":980965,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/64022\/revisions\/980965"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=64022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}