{"id":995286,"date":"2015-08-11T20:03:34","date_gmt":"2015-08-12T03:03:34","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/allow-only-one-ticket-edd-css-hack\/"},"modified":"2015-08-12T08:20:09","modified_gmt":"2015-08-12T15:20:09","slug":"allow-only-one-ticket-edd-css-hack","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/allow-only-one-ticket-edd-css-hack\/","title":{"rendered":"Allow only one ticket EDD &#8211; CSS hack."},"content":{"rendered":"<p>Hi,<\/p>\n<p>I just wanted to post this in case it would help someone else. The site I am working on has one use case selling tickets for conference events and needs to have one person&#8217;s (buyer) name associated with each ticket so I thought we would just disable in the EDD settings using:<\/p>\n<pre><code>\t\tadd_filter( &#039;edd_item_quantities_enabled&#039;, &#039;__return_false&#039; );\n<\/code><\/pre>\n<p>in the .\/eddtickets\/src\/Tribe\/Main.php or overriding this filter in the theme&#8217;s functions.php. This would not work and after considering the options and searching for other solutions (none worked for me) I figured I could just hide the field. The field is pre-populate with quantity of 1&#8230; so, <\/p>\n<p>I added the following to my child theme&#8217;s style.css:<\/p>\n<pre><code>td&gt;input.edd-input.edd-item-quantity {\n\tvisibility: hidden !important;\n\t}\n<\/code><\/pre>\n<p>to <em>disable<\/em> the field on the event page. And the following:<\/p>\n<pre><code>div.edd_download_quantity_wrapper {\n\tvisibility: hidden !important}\n<\/code><\/pre>\n<p>to <em>disable<\/em> the quantity field on the cart. <\/p>\n<p>I didn&#8217;t need to be ultra secure or compatible so I settled to hiding on the page. The remove button still shows up on the cart page and when clicked the line item is removed effectively emptying the cart.<\/p>\n<p>If there are other suggestions or pointers I would appreciate them.<\/p>\n<p>Thanks,<br \/>\nJonathan<\/p>\n","protected":false},"template":"","class_list":["post-995286","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>Allow only one ticket EDD - CSS hack. -<\/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\/allow-only-one-ticket-edd-css-hack\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Allow only one ticket EDD - CSS hack. -\" \/>\n<meta property=\"og:description\" content=\"Hi, I just wanted to post this in case it would help someone else. The site I am working on has one use case selling tickets for conference events and needs to have one person&#8217;s (buyer) name associated with each ticket so I thought we would just disable in the EDD settings using: add_filter( &#039;edd_item_quantities_enabled&#039;, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/allow-only-one-ticket-edd-css-hack\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-08-12T15:20:09+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\/allow-only-one-ticket-edd-css-hack\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/allow-only-one-ticket-edd-css-hack\/\",\"name\":\"Allow only one ticket EDD - CSS hack. -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-08-12T03:03:34+00:00\",\"dateModified\":\"2015-08-12T15:20:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/allow-only-one-ticket-edd-css-hack\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/allow-only-one-ticket-edd-css-hack\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/allow-only-one-ticket-edd-css-hack\/#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\":\"Allow only one ticket EDD &#8211; CSS hack.\"}]},{\"@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":"Allow only one ticket EDD - CSS hack. -","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\/allow-only-one-ticket-edd-css-hack\/","og_locale":"en_US","og_type":"article","og_title":"Allow only one ticket EDD - CSS hack. -","og_description":"Hi, I just wanted to post this in case it would help someone else. The site I am working on has one use case selling tickets for conference events and needs to have one person&#8217;s (buyer) name associated with each ticket so I thought we would just disable in the EDD settings using: add_filter( &#039;edd_item_quantities_enabled&#039;, [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/allow-only-one-ticket-edd-css-hack\/","article_modified_time":"2015-08-12T15:20:09+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\/allow-only-one-ticket-edd-css-hack\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/allow-only-one-ticket-edd-css-hack\/","name":"Allow only one ticket EDD - CSS hack. -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-08-12T03:03:34+00:00","dateModified":"2015-08-12T15:20:09+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/allow-only-one-ticket-edd-css-hack\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/allow-only-one-ticket-edd-css-hack\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/allow-only-one-ticket-edd-css-hack\/#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":"Allow only one ticket EDD &#8211; CSS hack."}]},{"@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\/995286","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":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/995286\/revisions"}],"predecessor-version":[{"id":995437,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/995286\/revisions\/995437"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=995286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}