{"id":259391,"date":"2014-06-29T02:35:29","date_gmt":"2014-06-29T09:35:29","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/woocommerce-tickets-wishlists\/"},"modified":"2014-08-04T12:32:31","modified_gmt":"2014-08-04T19:32:31","slug":"woocommerce-tickets-wishlists","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-tickets-wishlists\/","title":{"rendered":"WooCommerce Tickets + Wishlists"},"content":{"rendered":"<p>Hello,<br \/>\nI&#8217;m using Tribe ECP and Wootickets to book tickets to events and courses on this page here: http:\/\/battersea.wpengine.com\/courses\/beginner-1-spanish-lessons\/<br \/>\nI just purchased the wishlist extension so that users could chose to make a wishlist and buy their course later.<br \/>\nBut I cannot get the wishlist link to appear.<\/p>\n<p>I believe it has to do with the tickets.php file from tribe not automatically supporting that wishlist, but I&#8217;m not sure.<br \/>\nBelow is the code for the tickets template, wondering if anyone know what would need to be added to pull in wishlist. Thanks!:<\/p>\n<p>&lt;?php global $woocommerce; ?&gt;<\/p>\n<p>&lt;form action=&#8221;&lt;?php echo esc_url( add_query_arg( &#8216;wootickets_process&#8217;, 1, $woocommerce-&gt;cart-&gt;get_cart_url() ) ); ?&gt;&#8221;<br \/>\nclass=&#8221;cart&#8221; method=&#8221;post&#8221;<br \/>\nenctype=&#8217;multipart\/form-data&#8217;&gt;<br \/>\n&lt;table width=&#8221;100%&#8221; class=&#8221;tribe-events-tickets&#8221;&gt;<br \/>\n&lt;?php<\/p>\n<p>$is_there_any_product = false;<br \/>\n$is_there_any_product_to_sell = false;<\/p>\n<p>ob_start();<br \/>\nforeach ( $tickets as $ticket ) {<\/p>\n<p>global $product;<\/p>\n<p>if ( class_exists( &#8216;WC_Product_Simple&#8217; ) ) {<br \/>\n$product = new WC_Product_Simple( $ticket-&gt;ID );<br \/>\n} else {<br \/>\n$product = new WC_Product( $ticket-&gt;ID );<br \/>\n}<\/p>\n<p>$gmt_offset = ( get_option( &#8216;gmt_offset&#8217; ) &gt;= &#8216;0&#8217; ) ? &#8216; +&#8217; . get_option( &#8216;gmt_offset&#8217; ) : &#8221; &#8221; . get_option( &#8216;gmt_offset&#8217; );<br \/>\n$gmt_offset = str_replace( array( &#8216;.25&#8217;, &#8216;.5&#8217;, &#8216;.75&#8217; ), array( &#8216;:15&#8217;, &#8216;:30&#8217;, &#8216;:45&#8217; ), $gmt_offset );<\/p>\n<p>$end_date = null;<br \/>\nif ( ! empty( $ticket-&gt;end_date ) ){<br \/>\n$end_date = strtotime( $ticket-&gt;end_date . $gmt_offset );<br \/>\n}else{<br \/>\n$end_date = strtotime( tribe_get_end_date( get_the_ID(), false, &#8216;Y-m-d G:i&#8217; ) . $gmt_offset );<br \/>\n}<\/p>\n<p>$start_date = null;<br \/>\nif ( !empty( $ticket-&gt;start_date ) )<br \/>\n$start_date = strtotime( $ticket-&gt;start_date . $gmt_offset );<\/p>\n<p>if ( ( !$product-&gt;is_in_stock() ) || ( empty( $start_date ) || time() &gt; $start_date ) &amp;&amp; ( empty( $end_date ) || time() &lt; $end_date ) ) {<\/p>\n<p>$is_there_any_product = true;<\/p>\n<p>echo sprintf( &#8220;&lt;input type=&#8217;hidden&#8217; name=&#8217;product_id[]&#8217; value=&#8217;%d&#8217;&gt;&#8221;, $ticket-&gt;ID );<\/p>\n<p>echo &#8220;&lt;tr&gt;&#8221;;<br \/>\necho &#8220;&lt;td class=&#8217;woocommerce&#8217;&gt;&#8221;;<\/p>\n<p>if ( $product-&gt;is_in_stock() ) {<\/p>\n<p>woocommerce_quantity_input( array( &#8216;input_name&#8217; =&gt; &#8216;quantity_&#8217; . $ticket-&gt;ID,<br \/>\n&#8216;input_value&#8217; =&gt; 1,<br \/>\n&#8216;min_value&#8217; =&gt; 0,<br \/>\n&#8216;max_value&#8217; =&gt; $product-&gt;backorders_allowed() ? &#8221; : $product-&gt;get_stock_quantity(), ) );<\/p>\n<p>$is_there_any_product_to_sell = true;<\/p>\n<p>} else {<br \/>\necho &#8220;&lt;span class=&#8217;tickets_nostock&#8217;&gt;&#8221; . esc_html__( &#8216;Out of stock!&#8217;, &#8216;tribe-wootickets&#8217; ) . &#8220;&lt;\/span&gt;&#8221;;<br \/>\n}<br \/>\necho &#8220;&lt;\/td&gt;&#8221;;<\/p>\n<p>echo &#8220;&lt;td nowrap=&#8217;nowrap&#8217; class=&#8217;tickets_name&#8217;&gt;&#8221;;<br \/>\necho $ticket-&gt;name;<br \/>\necho &#8220;&lt;\/td&gt;&#8221;;<\/p>\n<p>echo &#8220;&lt;td class=&#8217;tickets_price&#8217;&gt;&#8221;;<br \/>\necho $this-&gt;get_price_html( $product );<br \/>\necho &#8220;&lt;\/td&gt;&#8221;;<\/p>\n<p>echo &#8220;&lt;td class=&#8217;tickets_description&#8217;&gt;&#8221;;<br \/>\necho $ticket-&gt;description;<br \/>\necho &#8220;&lt;\/td&gt;&#8221;;<\/p>\n<p>echo &#8220;&lt;\/tr&gt;&#8221;;<br \/>\n}<\/p>\n<p>}<br \/>\n$contents = ob_get_clean();<br \/>\nif ( $is_there_any_product ) {<br \/>\n?&gt;<br \/>\n&lt;h2 class=&#8221;tribe-events-tickets-title&#8221;&gt;&lt;?php _e( &#8216;Seats&#8217;, &#8216;tribe-wootickets&#8217; );?&gt;&lt;\/h2&gt;<br \/>\n&lt;?php echo $contents; ?&gt;<br \/>\n&lt;?php if ( $is_there_any_product_to_sell ) { ?&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td colspan=&#8221;4&#8243; class=&#8217;woocommerce&#8217;&gt;<\/p>\n<p>&lt;button type=&#8221;submit&#8221;<br \/>\nclass=&#8221;button alt&#8221;&gt;&lt;?php esc_html_e( &#8216;Add to cart&#8217;, &#8216;tribe-wootickets&#8217; );?&gt;&lt;\/button&gt;<br \/>\n&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;?php<br \/>\n}<br \/>\n}<br \/>\n?&gt;<\/p>\n<p>&lt;\/table&gt;<\/p>\n<p>&lt;\/form&gt;<\/p>\n","protected":false},"template":"","class_list":["post-259391","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>WooCommerce Tickets + Wishlists -<\/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\/woocommerce-tickets-wishlists\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WooCommerce Tickets + Wishlists -\" \/>\n<meta property=\"og:description\" content=\"Hello, I&#8217;m using Tribe ECP and Wootickets to book tickets to events and courses on this page here: http:\/\/battersea.wpengine.com\/courses\/beginner-1-spanish-lessons\/ I just purchased the wishlist extension so that users could chose to make a wishlist and buy their course later. But I cannot get the wishlist link to appear. I believe it has to do with [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-tickets-wishlists\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-08-04T19:32:31+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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-tickets-wishlists\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-tickets-wishlists\/\",\"name\":\"WooCommerce Tickets + Wishlists -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-06-29T09:35:29+00:00\",\"dateModified\":\"2014-08-04T19:32:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-tickets-wishlists\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-tickets-wishlists\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-tickets-wishlists\/#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\":\"WooCommerce Tickets + Wishlists\"}]},{\"@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":"WooCommerce Tickets + Wishlists -","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\/woocommerce-tickets-wishlists\/","og_locale":"en_US","og_type":"article","og_title":"WooCommerce Tickets + Wishlists -","og_description":"Hello, I&#8217;m using Tribe ECP and Wootickets to book tickets to events and courses on this page here: http:\/\/battersea.wpengine.com\/courses\/beginner-1-spanish-lessons\/ I just purchased the wishlist extension so that users could chose to make a wishlist and buy their course later. But I cannot get the wishlist link to appear. I believe it has to do with [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-tickets-wishlists\/","article_modified_time":"2014-08-04T19:32:31+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-tickets-wishlists\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-tickets-wishlists\/","name":"WooCommerce Tickets + Wishlists -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-06-29T09:35:29+00:00","dateModified":"2014-08-04T19:32:31+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-tickets-wishlists\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-tickets-wishlists\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/woocommerce-tickets-wishlists\/#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":"WooCommerce Tickets + Wishlists"}]},{"@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\/259391","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\/259391\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=259391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}