{"id":1026740,"date":"2015-11-17T02:38:57","date_gmt":"2015-11-17T10:38:57","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/redirect-add-to-cart\/"},"modified":"2016-02-18T08:31:39","modified_gmt":"2016-02-18T16:31:39","slug":"redirect-add-to-cart","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/redirect-add-to-cart\/","title":{"rendered":"Redirect Add to Cart"},"content":{"rendered":"<p>Hi,<\/p>\n<p>On 22 October I started a Topic regarding custom redirect from add-to-cart to custom product.<br \/>\nYou can read the converstation below.<\/p>\n<p>You guys helped by saying that i needed to configure it the functions.php but that wasn&#8217;t working. Now I found out that in the tickets.php there is add to cart function that I need to adjust. But i can&#8217;t get it working, can you guys help me out? I want it to redirect to a specific product.<\/p>\n<p>Thanks in advance.<\/p>\n<p>This was my question:<\/p>\n<p>Pim<br \/>\nOctober 22, 2015| Permalink<br \/>\nHi Guys,<\/p>\n<p>I\u2019m trying to redirect the Add to Cart instead of going to the the Cart page let it go to a specific product page. I tried a lot of different thing in the functions.php and tickets.php but nothing seems to work.<\/p>\n<p>Can you guys help me out?<\/p>\n<p>Thx!<\/p>\n<p>You guys answered me<\/p>\n<p>George<br \/>\nOctober 22, 2015| Permalink<br \/>\nCORRECT ANSWER?<br \/>\nHey @Pim!<\/p>\n<p>This is unfortunately a general WooCommerce question, and not something related to our add-on for it or to The Events Calendar itself; so I unfortunately cannot guarantee I\u2019ll be all that helpful here \ud83d\ude41 Your best option for finding a solution to this is to contact WooCommerce support directly, or search online for WooCommerce-specific solutions here.<\/p>\n<p>With all that being said, however, even though you mention having no success with functions.php tweaks thus far, I found this snippet on the official WooCommerce documentation that seems like it\u2019ll do the trick for you: https:\/\/docs.woothemes.com\/document\/set-a-custom-add-to-cart-url-to-redirect-to\/<\/p>\n<p>Check that out, I hope it helps! \ud83d\ude42<\/p>\n<p>\u2014 George<\/p>\n","protected":false},"template":"","class_list":["post-1026740","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>Redirect Add to Cart -<\/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\/redirect-add-to-cart\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Redirect Add to Cart -\" \/>\n<meta property=\"og:description\" content=\"Hi, On 22 October I started a Topic regarding custom redirect from add-to-cart to custom product. You can read the converstation below. You guys helped by saying that i needed to configure it the functions.php but that wasn&#8217;t working. Now I found out that in the tickets.php there is add to cart function that I [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/redirect-add-to-cart\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-18T16:31:39+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\/redirect-add-to-cart\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/redirect-add-to-cart\/\",\"name\":\"Redirect Add to Cart -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-11-17T10:38:57+00:00\",\"dateModified\":\"2016-02-18T16:31:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/redirect-add-to-cart\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/redirect-add-to-cart\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/redirect-add-to-cart\/#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\":\"Redirect Add to Cart\"}]},{\"@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":"Redirect Add to Cart -","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\/redirect-add-to-cart\/","og_locale":"en_US","og_type":"article","og_title":"Redirect Add to Cart -","og_description":"Hi, On 22 October I started a Topic regarding custom redirect from add-to-cart to custom product. You can read the converstation below. You guys helped by saying that i needed to configure it the functions.php but that wasn&#8217;t working. Now I found out that in the tickets.php there is add to cart function that I [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/redirect-add-to-cart\/","article_modified_time":"2016-02-18T16:31:39+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\/redirect-add-to-cart\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/redirect-add-to-cart\/","name":"Redirect Add to Cart -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-11-17T10:38:57+00:00","dateModified":"2016-02-18T16:31:39+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/redirect-add-to-cart\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/redirect-add-to-cart\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/redirect-add-to-cart\/#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":"Redirect Add to Cart"}]},{"@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\/1026740","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\/1026740\/revisions"}],"predecessor-version":[{"id":1027107,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1026740\/revisions\/1027107"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1026740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}