{"id":310052,"date":"2014-07-08T08:03:24","date_gmt":"2014-07-08T15:03:24","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/ajax-add-to-cart-still-required\/"},"modified":"2014-08-14T08:06:55","modified_gmt":"2014-08-14T15:06:55","slug":"ajax-add-to-cart-still-required","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ajax-add-to-cart-still-required\/","title":{"rendered":"Ajax Add to Cart still required!"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>I&#8217;m just following up on the following post, which was a development on the requests for the Ajax &#8216;Add to Cart&#8217; button, to allow the user to stay on a page after adding to cart, without a redirect to the cart page. The biggest issue this is causing us (apart from the fact the client really hates the workflow of going to the cart each time a ticket is added) is that because we are selling other WooCommerce products on the same site, the behavior is inconsistent, as WooCommerce products are added to the cart whilst staying on page.<\/p>\n<p>In the following thread, user &#8216;spotstudio&#8217; talks about a workaround using the get_tickets_ids() method, plus the WooCommerce &#8216;Add to Cart&#8217; code. I&#8217;d really appreciate it if someone could expand on how to do that, as I don&#8217;t really know where to start &amp; time is running out for me!<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"ccuUxLPULO\"><p><a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wootickets-ajax-add-to-cart\/\">WooTickets \/ Ajax add-to-cart<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;WooTickets \/ Ajax add-to-cart&#8221; &#8212; \" src=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/wootickets-ajax-add-to-cart\/embed\/#?secret=dG9ahbTxKy#?secret=ccuUxLPULO\" data-secret=\"ccuUxLPULO\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>I hope someone canhelp? Hopefully this feature is nearer being included as core?<\/p>\n<p>Cheerio for now,<\/p>\n<p>Mat<\/p>\n","protected":false},"template":"","class_list":["post-310052","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>Ajax Add to Cart still required! -<\/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\/ajax-add-to-cart-still-required\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ajax Add to Cart still required! -\" \/>\n<meta property=\"og:description\" content=\"Hi there, I&#8217;m just following up on the following post, which was a development on the requests for the Ajax &#8216;Add to Cart&#8217; button, to allow the user to stay on a page after adding to cart, without a redirect to the cart page. The biggest issue this is causing us (apart from the fact [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ajax-add-to-cart-still-required\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-08-14T15:06:55+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\/ajax-add-to-cart-still-required\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ajax-add-to-cart-still-required\/\",\"name\":\"Ajax Add to Cart still required! -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-07-08T15:03:24+00:00\",\"dateModified\":\"2014-08-14T15:06:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ajax-add-to-cart-still-required\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ajax-add-to-cart-still-required\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ajax-add-to-cart-still-required\/#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\":\"Ajax Add to Cart still required!\"}]},{\"@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":"Ajax Add to Cart still required! -","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\/ajax-add-to-cart-still-required\/","og_locale":"en_US","og_type":"article","og_title":"Ajax Add to Cart still required! -","og_description":"Hi there, I&#8217;m just following up on the following post, which was a development on the requests for the Ajax &#8216;Add to Cart&#8217; button, to allow the user to stay on a page after adding to cart, without a redirect to the cart page. The biggest issue this is causing us (apart from the fact [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ajax-add-to-cart-still-required\/","article_modified_time":"2014-08-14T15:06:55+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\/ajax-add-to-cart-still-required\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ajax-add-to-cart-still-required\/","name":"Ajax Add to Cart still required! -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-07-08T15:03:24+00:00","dateModified":"2014-08-14T15:06:55+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ajax-add-to-cart-still-required\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/ajax-add-to-cart-still-required\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ajax-add-to-cart-still-required\/#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":"Ajax Add to Cart still required!"}]},{"@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\/310052","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":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/310052\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=310052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}