{"id":1368012,"date":"2017-10-24T06:22:29","date_gmt":"2017-10-24T13:22:29","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/limit-the-number-of-tickets-on-rsvp\/"},"modified":"2017-10-24T06:25:21","modified_gmt":"2017-10-24T13:25:21","slug":"limit-the-number-of-tickets-on-rsvp","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/limit-the-number-of-tickets-on-rsvp\/","title":{"rendered":"limit the number of tickets on RSVP"},"content":{"rendered":"<p>I have seen a few people ask about this, and i believe I have discovered a way to fix this without a plugin.<\/p>\n<p>To modify RSVP tickets default and max quantities you\u2019ll need to create a template override for the RSVP tickets form.<\/p>\n<p>The file is located at:<\/p>\n<p>wp-content\/plugins\/event-tickets\/src\/views\/tickets\/rsvp.php<\/p>\n<p>Copy it over to:<\/p>\n<p>wp-content\/themes\/your-theme-child\/tribe-events\/tickets\/rsvp.php<\/p>\n<p>Once the copy is in place,<\/p>\n<p>Go to line 75 to 86, where you&#8217;ll see the following:<br \/>\n75 &lt;tr&gt;<br \/>\n76\t&lt;td class=&#8221;tribe-ticket quantity&#8221; data-product-id=&#8221;&lt;?php echo esc_attr( $ticket-&gt;ID ); ?&gt;&#8221;&gt;<br \/>\n77\t&lt;input type=&#8221;hidden&#8221; name=&#8221;product_id[]&#8221; value=&#8221;&lt;?php echo absint( $ticket-&gt;ID ); ?&gt;&#8221;&gt;<br \/>\n78\t&lt;?php if ( $is_there_any_product_to_sell ) : ?&gt;<br \/>\n79\t&lt;input<br \/>\n80\ttype=&#8221;number&#8221;<br \/>\n81\tclass=&#8221;tribe-ticket-quantity&#8221;<br \/>\n82\tmin=&#8221;0&#8243;<br \/>\n83    max=&#8221;&lt;?php echo esc_attr( $ticket-&gt;remaining() ); ?&gt;&#8221;<br \/>\n84\tname=&#8221;quantity_&lt;?php echo absint( $ticket-&gt;ID ); ?&gt;&#8221;<br \/>\n85\tvalue=&#8221;0&#8243;<br \/>\n86\t&lt;?php disabled( $must_login ); ?&gt;<\/p>\n<p>On line 83 just add the limit you wish for your RSVPs, like this<br \/>\n\t\t\t\t\t\tmax=&#8221;2&#8243;&lt;?php echo esc_attr( $ticket-&gt;remaining() ); ?&gt;&#8221;<\/p>\n<p>I&#8217;d like the admin here to test this on their end and confirm that it works for them as it has for me.<\/p>\n<p>-Nancy Hernandez<\/p>\n","protected":false},"template":"","class_list":["post-1368012","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>limit the number of tickets on RSVP -<\/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\/limit-the-number-of-tickets-on-rsvp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"limit the number of tickets on RSVP -\" \/>\n<meta property=\"og:description\" content=\"I have seen a few people ask about this, and i believe I have discovered a way to fix this without a plugin. To modify RSVP tickets default and max quantities you\u2019ll need to create a template override for the RSVP tickets form. The file is located at: wp-content\/plugins\/event-tickets\/src\/views\/tickets\/rsvp.php Copy it over to: wp-content\/themes\/your-theme-child\/tribe-events\/tickets\/rsvp.php Once [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/limit-the-number-of-tickets-on-rsvp\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-10-24T13:25:21+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\/limit-the-number-of-tickets-on-rsvp\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/limit-the-number-of-tickets-on-rsvp\/\",\"name\":\"limit the number of tickets on RSVP -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-10-24T13:22:29+00:00\",\"dateModified\":\"2017-10-24T13:25:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/limit-the-number-of-tickets-on-rsvp\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/limit-the-number-of-tickets-on-rsvp\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/limit-the-number-of-tickets-on-rsvp\/#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\":\"limit the number of tickets on RSVP\"}]},{\"@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":"limit the number of tickets on RSVP -","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\/limit-the-number-of-tickets-on-rsvp\/","og_locale":"en_US","og_type":"article","og_title":"limit the number of tickets on RSVP -","og_description":"I have seen a few people ask about this, and i believe I have discovered a way to fix this without a plugin. To modify RSVP tickets default and max quantities you\u2019ll need to create a template override for the RSVP tickets form. The file is located at: wp-content\/plugins\/event-tickets\/src\/views\/tickets\/rsvp.php Copy it over to: wp-content\/themes\/your-theme-child\/tribe-events\/tickets\/rsvp.php Once [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/limit-the-number-of-tickets-on-rsvp\/","article_modified_time":"2017-10-24T13:25:21+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\/limit-the-number-of-tickets-on-rsvp\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/limit-the-number-of-tickets-on-rsvp\/","name":"limit the number of tickets on RSVP -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-10-24T13:22:29+00:00","dateModified":"2017-10-24T13:25:21+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/limit-the-number-of-tickets-on-rsvp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/limit-the-number-of-tickets-on-rsvp\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/limit-the-number-of-tickets-on-rsvp\/#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":"limit the number of tickets on RSVP"}]},{"@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\/1368012","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\/1368012\/revisions"}],"predecessor-version":[{"id":1368016,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1368012\/revisions\/1368016"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1368012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}