{"id":1103130,"date":"2016-04-15T09:55:21","date_gmt":"2016-04-15T16:55:21","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-tickets-form-to-event-listings\/"},"modified":"2016-05-03T09:35:02","modified_gmt":"2016-05-03T16:35:02","slug":"add-tickets-form-to-event-listings","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-tickets-form-to-event-listings\/","title":{"rendered":"Add tickets form to event listings"},"content":{"rendered":"<p>Somewhere* I found the snippet below, which, when added to my theme&#8217;s  functions.php file works great  in putting the ticket form in the event listing (calendar list view).<br \/>\nI modified another file to not whisk people off to the cart, so on one page they can select and add to cart tickets for multiple events.<\/p>\n<p>All is well on that site.   Now I want to do a similar thing on a site that uses ETP with Easy Digital Downloads.<\/p>\n<p>Can anyone help with the code snippet that will work with EDD?<\/p>\n<p>\/*<br \/>\n * Add tickets form to event listings<br \/>\n *\/<br \/>\nif ( class_exists( Tribe__Tickets_Plus__Commerce__WooCommerce__Main ) ) {<br \/>\n    add_action ( &#8216;tribe_events_after_the_content&#8217;, array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), &#8216;front_end_tickets_form&#8217; ), 10 );<br \/>\n}<\/p>\n<p>* I also can&#8217;t seem to find this again &#8212; Searching this forum \/ knowledgebase is frustrating &#8212; I&#8217;ve taken to making my own index of useful stuff I stumble across, because I can&#8217;t trust that I&#8217;ll find it again.<\/p>\n","protected":false},"template":"","class_list":["post-1103130","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>Add tickets form to event listings -<\/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\/add-tickets-form-to-event-listings\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add tickets form to event listings -\" \/>\n<meta property=\"og:description\" content=\"Somewhere* I found the snippet below, which, when added to my theme&#8217;s functions.php file works great in putting the ticket form in the event listing (calendar list view). I modified another file to not whisk people off to the cart, so on one page they can select and add to cart tickets for multiple events. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-tickets-form-to-event-listings\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-03T16:35:02+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\/add-tickets-form-to-event-listings\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-tickets-form-to-event-listings\/\",\"name\":\"Add tickets form to event listings -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-04-15T16:55:21+00:00\",\"dateModified\":\"2016-05-03T16:35:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-tickets-form-to-event-listings\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-tickets-form-to-event-listings\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-tickets-form-to-event-listings\/#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\":\"Add tickets form to event listings\"}]},{\"@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":"Add tickets form to event listings -","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\/add-tickets-form-to-event-listings\/","og_locale":"en_US","og_type":"article","og_title":"Add tickets form to event listings -","og_description":"Somewhere* I found the snippet below, which, when added to my theme&#8217;s functions.php file works great in putting the ticket form in the event listing (calendar list view). I modified another file to not whisk people off to the cart, so on one page they can select and add to cart tickets for multiple events. [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-tickets-form-to-event-listings\/","article_modified_time":"2016-05-03T16:35:02+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\/add-tickets-form-to-event-listings\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-tickets-form-to-event-listings\/","name":"Add tickets form to event listings -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-04-15T16:55:21+00:00","dateModified":"2016-05-03T16:35:02+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-tickets-form-to-event-listings\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-tickets-form-to-event-listings\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-tickets-form-to-event-listings\/#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":"Add tickets form to event listings"}]},{"@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\/1103130","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\/1103130\/revisions"}],"predecessor-version":[{"id":1103728,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1103130\/revisions\/1103728"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1103130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}