{"id":1310694,"date":"2017-06-28T15:08:35","date_gmt":"2017-06-28T22:08:35","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-to-cart-button-not-working-using-wptoolset\/"},"modified":"2017-06-28T15:08:35","modified_gmt":"2017-06-28T22:08:35","slug":"add-to-cart-button-not-working-using-wptoolset","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-to-cart-button-not-working-using-wptoolset\/","title":{"rendered":"Add to cart button not working using WPToolset"},"content":{"rendered":"<p>I hope someone can help me and I hope I can explain the problem I have.<br \/>\nI am running The Events Calendar Pro plugin with event ticket plus. I am using a WPToolset views content template for the single event page view. I&#8217;ve managed to get the views content template to display times, location etc by using several variations of the script below and adding to my functions.php.<\/p>\n<p>For example.<\/p>\n<p>add_shortcode(&#8216;venue-address&#8217;, &#8216;venue_address_shortcode&#8217;);<br \/>\nfunction venue_address_shortcode() {<br \/>\n  global $post;<br \/>\n  return tribe_get_address( $post  );<br \/>\n}<br \/>\nand then adding [venue-address] to the single event content template.<\/p>\n<p>I can&#8217;t work out how to get it the views content template to display an &#8216;add to cart&#8217; button if the event has a ticket? Is there another &#8216;add_shortcode&#8217; piece of script that I need to add to my functions.php file? <\/p>\n<p>I am not a developer but I do have a certain amount of knowledge so if someone can help and explain things to an amateur developer, it would be most appreciated.<\/p>\n<p>I do hope someone can help me as I have got a client who is running out of patience!<\/p>\n<p>If anyone needs anything explained a bit better then please do get in touch.<\/p>\n<p>Many thanks<br \/>\nMark<\/p>\n","protected":false},"template":"","class_list":["post-1310694","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 to cart button not working using WPToolset -<\/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-to-cart-button-not-working-using-wptoolset\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add to cart button not working using WPToolset -\" \/>\n<meta property=\"og:description\" content=\"I hope someone can help me and I hope I can explain the problem I have. I am running The Events Calendar Pro plugin with event ticket plus. I am using a WPToolset views content template for the single event page view. I&#8217;ve managed to get the views content template to display times, location etc [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-to-cart-button-not-working-using-wptoolset\/\" \/>\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-to-cart-button-not-working-using-wptoolset\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-to-cart-button-not-working-using-wptoolset\/\",\"name\":\"Add to cart button not working using WPToolset -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-06-28T22:08:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-to-cart-button-not-working-using-wptoolset\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-to-cart-button-not-working-using-wptoolset\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-to-cart-button-not-working-using-wptoolset\/#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 to cart button not working using WPToolset\"}]},{\"@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 to cart button not working using WPToolset -","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-to-cart-button-not-working-using-wptoolset\/","og_locale":"en_US","og_type":"article","og_title":"Add to cart button not working using WPToolset -","og_description":"I hope someone can help me and I hope I can explain the problem I have. I am running The Events Calendar Pro plugin with event ticket plus. I am using a WPToolset views content template for the single event page view. I&#8217;ve managed to get the views content template to display times, location etc [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-to-cart-button-not-working-using-wptoolset\/","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-to-cart-button-not-working-using-wptoolset\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-to-cart-button-not-working-using-wptoolset\/","name":"Add to cart button not working using WPToolset -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-06-28T22:08:35+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-to-cart-button-not-working-using-wptoolset\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-to-cart-button-not-working-using-wptoolset\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-to-cart-button-not-working-using-wptoolset\/#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 to cart button not working using WPToolset"}]},{"@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\/1310694","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\/1310694\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1310694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}