{"id":1158033,"date":"2016-08-31T05:13:18","date_gmt":"2016-08-31T12:13:18","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/"},"modified":"2016-08-31T05:13:18","modified_gmt":"2016-08-31T12:13:18","slug":"is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/","title":{"rendered":"Is it possible to make the add tickets button go straight to checkout?"},"content":{"rendered":"<p>On our site people can only buy one ticket for themselves so I&#8217;ve renamed the add tickets button to &#8220;Buy ticket&#8221; but haven&#8217;t found a way to change where it goes after adding it to the basket.<\/p>\n<p>In the template it triggers this<br \/>\n&lt;button type=&#8221;submit&#8221; name=&#8221;<strong>wootickets_process<\/strong>&#8221; value=&#8221;1&#8243;<br \/>\n\t\t\t\t\t\t\tclass=&#8221;button alt&#8221;&gt;&lt;?php esc_html_e( &#8216;Buy ticket&#8217;, &#8216;event-tickets-plus&#8217; );?&gt;&lt;\/button&gt;<\/p>\n<p>Wootickets process and I just need to find a way to change where it goes after adding them.<\/p>\n<p>Any ideas?<\/p>\n<p>p.s I tried adding<br \/>\nadd_filter (&#8216;add_to_cart_redirect&#8217;, &#8216;redirect_to_checkout&#8217;);<\/p>\n<p>function redirect_to_checkout() {<br \/>\nglobal $woocommerce;<br \/>\n$checkout_url = $woocommerce-&gt;cart-&gt;get_checkout_url();<br \/>\nreturn $checkout_url;<br \/>\n}<\/p>\n<p>To my functions file as per a few posts but wootickets ignores it.<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-1158033","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>Is it possible to make the add tickets button go straight to checkout? -<\/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\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Is it possible to make the add tickets button go straight to checkout? -\" \/>\n<meta property=\"og:description\" content=\"On our site people can only buy one ticket for themselves so I&#8217;ve renamed the add tickets button to &#8220;Buy ticket&#8221; but haven&#8217;t found a way to change where it goes after adding it to the basket. In the template it triggers this &lt;button type=&#8221;submit&#8221; name=&#8221;wootickets_process&#8221; value=&#8221;1&#8243; class=&#8221;button alt&#8221;&gt;&lt;?php esc_html_e( &#8216;Buy ticket&#8217;, &#8216;event-tickets-plus&#8217; );?&gt;&lt;\/button&gt; Wootickets [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/\" \/>\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\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/\",\"name\":\"Is it possible to make the add tickets button go straight to checkout? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-08-31T12:13:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/#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\":\"Is it possible to make the add tickets button go straight to checkout?\"}]},{\"@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":"Is it possible to make the add tickets button go straight to checkout? -","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\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/","og_locale":"en_US","og_type":"article","og_title":"Is it possible to make the add tickets button go straight to checkout? -","og_description":"On our site people can only buy one ticket for themselves so I&#8217;ve renamed the add tickets button to &#8220;Buy ticket&#8221; but haven&#8217;t found a way to change where it goes after adding it to the basket. In the template it triggers this &lt;button type=&#8221;submit&#8221; name=&#8221;wootickets_process&#8221; value=&#8221;1&#8243; class=&#8221;button alt&#8221;&gt;&lt;?php esc_html_e( &#8216;Buy ticket&#8217;, &#8216;event-tickets-plus&#8217; );?&gt;&lt;\/button&gt; Wootickets [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/","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\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/","name":"Is it possible to make the add tickets button go straight to checkout? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-08-31T12:13:18+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/is-it-possible-to-make-the-add-tickets-button-go-straight-to-checkout\/#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":"Is it possible to make the add tickets button go straight to checkout?"}]},{"@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\/1158033","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\/1158033\/revisions"}],"predecessor-version":[{"id":1158112,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1158033\/revisions\/1158112"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1158033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}