{"id":1306045,"date":"2017-06-26T06:09:00","date_gmt":"2017-06-26T13:09:00","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-number-of-tickets-remaining\/"},"modified":"2017-06-26T06:09:00","modified_gmt":"2017-06-26T13:09:00","slug":"hide-number-of-tickets-remaining","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-number-of-tickets-remaining\/","title":{"rendered":"Hide number of tickets remaining"},"content":{"rendered":"<p>Hi  I had the number of tickets remaining hidden but Since the recent update they are being displayed again.  I have searched the forum and found others with the same issue.  The advice given was to add<br \/>\n.tribe-tickets-remaining {<br \/>\ndisplay: none !important;<br \/>\n}<br \/>\nas CSS but this is not working. It also does not work to hide the number remaining in the woo commerce settings.<\/p>\n<p> I was previously using the code snippet below and this is what stopped working with the recent update.  Can you help please?  It is essential I have the number of tickets remaining hidden.  <\/p>\n<p> \/* From https:\/\/gist.github.com\/cliffordp\/94f37421a00db6f7a96368aa23a8d8bb<br \/>\n * For https:\/\/theeventscalendar.com\/support\/forums\/topic\/number-of-tickets-available\/<br \/>\n *<br \/>\n * The Events Calendar + Event Tickets Plus + WooCommerce:<br \/>\nHide remaining quantity unless it is less than 4 (to create a sense of urgency)<br \/>\n *<br \/>\n * NOTE: Would need .each loop logic to work properly for more than just the first WooCommerce ticket if more than 1 WooCommerce ticket is available per event!<br \/>\n *\/<br \/>\nfunction cliff_etplus_woo_conditional_hide_qty_remaining() {<br \/>\n\twp_enqueue_script( &#8216;jquery&#8217; );<br \/>\n\t?&gt;<br \/>\n\t&lt;script type=&#8221;text\/javascript&#8221;&gt;<br \/>\n\t\tjQuery(document).ready( function () {<br \/>\n\t\t\tvar qty_remaining = jQuery( &#8216;body.single-tribe_events .woocommerce .tribe-tickets-remaining &gt; span.available-stock&#8217; ).first().text(); \/\/ would need to loop instead of use .first() to work for more than 1 WooCommerce ticket per Event<br \/>\n\t\t\tqty_remaining = parseInt( qty_remaining, 10 );<br \/>\n\t\t\tif ( ! isNaN( qty_remaining ) &amp;&amp; 2 &lt; qty_remaining ) {<br \/>\n\t\t\t\tjQuery( &#8216;body.single-tribe_events .woocommerce .tribe-tickets-remaining&#8217; ).hide();<br \/>\n\t\t\t}<br \/>\n\t\t});<br \/>\n\t&lt;\/script&gt;<br \/>\n\t&lt;?php<br \/>\n}<br \/>\nadd_action( &#8216;wp_head&#8217;, &#8216;cliff_etplus_woo_conditional_hide_qty_remaining&#8217; );<\/p>\n","protected":false},"template":"","class_list":["post-1306045","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>Hide number of tickets remaining -<\/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\/hide-number-of-tickets-remaining\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hide number of tickets remaining -\" \/>\n<meta property=\"og:description\" content=\"Hi I had the number of tickets remaining hidden but Since the recent update they are being displayed again. I have searched the forum and found others with the same issue. The advice given was to add .tribe-tickets-remaining { display: none !important; } as CSS but this is not working. It also does not work [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-number-of-tickets-remaining\/\" \/>\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\/hide-number-of-tickets-remaining\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-number-of-tickets-remaining\/\",\"name\":\"Hide number of tickets remaining -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-06-26T13:09:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-number-of-tickets-remaining\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-number-of-tickets-remaining\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-number-of-tickets-remaining\/#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\":\"Hide number of tickets remaining\"}]},{\"@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":"Hide number of tickets remaining -","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\/hide-number-of-tickets-remaining\/","og_locale":"en_US","og_type":"article","og_title":"Hide number of tickets remaining -","og_description":"Hi I had the number of tickets remaining hidden but Since the recent update they are being displayed again. I have searched the forum and found others with the same issue. The advice given was to add .tribe-tickets-remaining { display: none !important; } as CSS but this is not working. It also does not work [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-number-of-tickets-remaining\/","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\/hide-number-of-tickets-remaining\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-number-of-tickets-remaining\/","name":"Hide number of tickets remaining -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-06-26T13:09:00+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-number-of-tickets-remaining\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-number-of-tickets-remaining\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/hide-number-of-tickets-remaining\/#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":"Hide number of tickets remaining"}]},{"@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\/1306045","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\/1306045\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1306045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}