{"id":1348816,"date":"2017-09-13T12:38:16","date_gmt":"2017-09-13T19:38:16","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/maximum-number-of-tickets-per-order\/"},"modified":"2017-09-13T12:38:16","modified_gmt":"2017-09-13T19:38:16","slug":"maximum-number-of-tickets-per-order","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/maximum-number-of-tickets-per-order\/","title":{"rendered":"Maximum Number of Tickets Per Order"},"content":{"rendered":"<p>Hello ET+ Support Folks:<\/p>\n<p>I need to change the default number from 0 to 1 when someone goes to the order screen.  I found the code at bottom of post very helpful (from your Knowledgebase).  However, if I want to also limit the number of tickets someone can buy per transaction, where would I set that number?  Would I replace &#8220;$&#8221; with number next to max_quantity?  Here&#8217;s the code from your knowledgebase.<\/p>\n<p>Set the Default Input Value<\/p>\n<p>Within that file, locate the following (should be around lines 55-60):<\/p>\n<p>woocommerce_quantity_input( array(<br \/>\n    &#8216;input_name&#8217;  =&gt; &#8216;quantity_&#8217; . $ticket-&gt;ID,<br \/>\n    &#8216;input_value&#8217; =&gt; 0,<br \/>\n    &#8216;min_value&#8217;   =&gt; 0,<br \/>\n    &#8216;max_value&#8217;   =&gt; $max_quantity,<br \/>\n) );<br \/>\nview raw<br \/>\nset-ticket-default.php hosted with \u2764 by GitHub<\/p>\n<p>See that part that reads &#8216;input_value&#8217; =&gt; 0? Simply change the 0 to 1 and you\u2019re done!<\/p>\n<p>Thanks for all your help.<\/p>\n<p>Ron&#8230;<\/p>\n","protected":false},"template":"","class_list":["post-1348816","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>Maximum Number of Tickets Per Order -<\/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\/maximum-number-of-tickets-per-order\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Maximum Number of Tickets Per Order -\" \/>\n<meta property=\"og:description\" content=\"Hello ET+ Support Folks: I need to change the default number from 0 to 1 when someone goes to the order screen. I found the code at bottom of post very helpful (from your Knowledgebase). However, if I want to also limit the number of tickets someone can buy per transaction, where would I set [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/maximum-number-of-tickets-per-order\/\" \/>\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\/maximum-number-of-tickets-per-order\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/maximum-number-of-tickets-per-order\/\",\"name\":\"Maximum Number of Tickets Per Order -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-09-13T19:38:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/maximum-number-of-tickets-per-order\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/maximum-number-of-tickets-per-order\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/maximum-number-of-tickets-per-order\/#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\":\"Maximum Number of Tickets Per Order\"}]},{\"@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":"Maximum Number of Tickets Per Order -","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\/maximum-number-of-tickets-per-order\/","og_locale":"en_US","og_type":"article","og_title":"Maximum Number of Tickets Per Order -","og_description":"Hello ET+ Support Folks: I need to change the default number from 0 to 1 when someone goes to the order screen. I found the code at bottom of post very helpful (from your Knowledgebase). However, if I want to also limit the number of tickets someone can buy per transaction, where would I set [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/maximum-number-of-tickets-per-order\/","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\/maximum-number-of-tickets-per-order\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/maximum-number-of-tickets-per-order\/","name":"Maximum Number of Tickets Per Order -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-09-13T19:38:16+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/maximum-number-of-tickets-per-order\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/maximum-number-of-tickets-per-order\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/maximum-number-of-tickets-per-order\/#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":"Maximum Number of Tickets Per Order"}]},{"@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\/1348816","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\/1348816\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1348816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}