{"id":1319679,"date":"2017-07-11T10:39:22","date_gmt":"2017-07-11T17:39:22","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/"},"modified":"2017-07-11T10:41:28","modified_gmt":"2017-07-11T17:41:28","slug":"how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/","title":{"rendered":"How can I prevent the user to register multiple times to the same ticket"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I have an issue on registering a user at an event.<\/p>\n<p>I&#8217;m using Event Tickets Plus plugin just to have a QR Code in our ticket email. I don&#8217;t know if you need this information to help me but I&#8217;m not using this plugin for an e-commerce solution. Here are the restrictions we have for event registration via ticket :<\/p>\n<ol>\n1 &#8211; There is always only one existing ticket for an event.<br \/>\n2 &#8211; In order to register to the event, the user need to be connected<br \/>\n3 &#8211; The user can&#8217;t register multiple times at the same event<br \/>\n4 &#8211; The user can only register himself for the event (The User ID have to match the User email)\n<\/ol>\n<p>I was able to match all those restrictions by override the plugin templates but I was able to catch a way to register a user multiple times at the same event :<\/p>\n<p>Let&#8217;s say I&#8217;m a connected user and I&#8217;m accessing a new event page where I&#8217;m not registered.<br \/>\nSo on this page, I can register to the event only by clicking this button. Then the page will refresh and it&#8217;ll display another button to access to the &#8216;orders.php&#8217; template page.<\/p>\n<p><strong>But imagine that before I register to the event, I open the same page in another tab, I have now 2 pages with the same &#8220;Register to the event&#8221; button, and will be able to register myself twice to the same event.<\/strong><\/p>\n<p>I would like to know if I can hook just before the user try to register in order to check if his already registered.<br \/>\nIf I can&#8217;t use hook because the plugin can completely change his architecture, how can I prevent the user to register multiple times to the same event?<\/p>\n<p>Thank you!<\/p>\n","protected":false},"template":"","class_list":["post-1319679","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>How can I prevent the user to register multiple times to the same ticket -<\/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\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How can I prevent the user to register multiple times to the same ticket -\" \/>\n<meta property=\"og:description\" content=\"Hi, I have an issue on registering a user at an event. I&#8217;m using Event Tickets Plus plugin just to have a QR Code in our ticket email. I don&#8217;t know if you need this information to help me but I&#8217;m not using this plugin for an e-commerce solution. Here are the restrictions we have [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-07-11T17:41:28+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\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/\",\"name\":\"How can I prevent the user to register multiple times to the same ticket -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-07-11T17:39:22+00:00\",\"dateModified\":\"2017-07-11T17:41:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/#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\":\"How can I prevent the user to register multiple times to the same ticket\"}]},{\"@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":"How can I prevent the user to register multiple times to the same ticket -","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\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/","og_locale":"en_US","og_type":"article","og_title":"How can I prevent the user to register multiple times to the same ticket -","og_description":"Hi, I have an issue on registering a user at an event. I&#8217;m using Event Tickets Plus plugin just to have a QR Code in our ticket email. I don&#8217;t know if you need this information to help me but I&#8217;m not using this plugin for an e-commerce solution. Here are the restrictions we have [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/","article_modified_time":"2017-07-11T17:41:28+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\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/","name":"How can I prevent the user to register multiple times to the same ticket -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-07-11T17:39:22+00:00","dateModified":"2017-07-11T17:41:28+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-can-i-prevent-the-user-to-register-multiple-times-to-the-same-ticket\/#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":"How can I prevent the user to register multiple times to the same ticket"}]},{"@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\/1319679","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\/1319679\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1319679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}