Answers.Body: <p>You can also set up a Price Set option so one person can buy multiple tickets while only entering their own details once.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-09T22:31:21.763Z
Answers.LastActivityDate: 2019-10-09T22:31:21.763Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>This is configurable through t Event Mgmt, Online Registration page. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-09T17:02:16.183Z
Answers.Text: That allows multiple different people to be registered by one person, but not the same person multiple times, which is what is being asked for.
Answers.UserDisplayName: Mick Kahn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-16T18:50:01.023Z
Answers.Text: You can set the option to use the same email (same person) multiple times, it is the option underneath the one you mentioned (multiple reg), and is named 'Same email address' which allows the same email to be used > 1x in an event.
Answers.UserDisplayName: Lesley Evensen
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-16T21:52:36.937Z
Answers.Text: You can set allowing the same email (and I use that because sometimes couples share the same email) but it insists that the First and Last names are not both the same. Maybe you are using a weaker de-duplcation rule.
Answers.UserDisplayName: Mick Kahn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-18T17:48:02.613Z
Answers.Text: We do have the flag 'allow same email' set for events, but the code in participant.php isn't checking the value of that flag in Events; the theater wants to allow people to register again to add more seats (using the same name & email) after a first registration.
Answers.UserDisplayName: Lesley Evensen
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-09T14:00:02.263Z
Answers.LastActivityDate: 2019-10-09T14:00:02.263Z
Answers.UserDisplayName: Lesley Evensen
Answers.Body: <p>I added this to CRM/Event/Form/Participant.php  line 861
  $eventId = CRM_Utils_Array::value('event_id', $values);</p>
  
  <blockquote>
    <blockquote>
      <p>$sql = 'select allow_same_participant_emails from civicrm_event where id = '.$eventId;
            $dao = CRM_Core_DAO::executeQuery($sql );
            $dao->query($sql);
              $same_emails = NULL;
              while ($dao->fetch()) {
                 $same_emails = $dao->allow_same_participant_emails;
              }</p>
    </blockquote>
  </blockquote>
  
  <p>And then at line 878, check the value of $same_emails:
  if ( !empty($dupeCheck->id) &amp;&amp; (empty($same_emails) or ($same_emails &lt; 1)) ) {
            $errorMsg['event_id'] = ts("This contact has already been assigned to this event.");
          }</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-20T18:58:43.313Z
Answers.LastActivityDate: 2019-11-20T18:58:43.313Z
Answers.UserDisplayName: Lesley Evensen
Body: <p>Civicrm 5.*, any platform</p>
  
  <p>I will keep looking in documentation, but if someone can give me an answer as to why a unique contact cannot register > 1 time per event, I would appreciate it - I can imagine it may be due to DB Schema issues. I am not talking about registering multiple participants using 1 email address but allowing a contact to register two or more times. I do know it would mess up some of my reports!
  thanks </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-09T01:17:13.263Z
Comments.Text: Are you maybe using events to represent something that is not an actual physical event?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-09T02:17:38.050Z
Comments.Text: Similarly curious about the use case. In theory it is trying to reflect reality that you can only personally turn up at an event once unless you have unusual super powers
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-09T10:35:20.507Z
Comments.Text: Also would like to understand the use case. if its for options at the event, perhaps you can use price sets to allow the participant to book different options.
Comments.UserDisplayName: Mick Kahn
Tags: <civievent>
Title: Only one registration per contact per event
ThreadText: # Only one registration per contact per event
  
  (Asked by: username_0 on 2019-10-09)
  
  Civicrm 5.\*, any platform
  
  I will keep looking in documentation, but if someone can give me an answer as to why a unique contact cannot register > 1 time per event, I would appreciate it - I can imagine it may be due to DB Schema issues. I am not talking about registering multiple participants using 1 email address but allowing a contact to register two or more times. I do know it would mess up some of my reports!
  thanks
  
  **Tags:** civievent
  
  > **Comments:**
  > **username_1**: Are you maybe using events to represent something that is not an actual physical event?  
  > **username_2**: Similarly curious about the use case. In theory it is trying to reflect reality that you can only personally turn up at an event once unless you have unusual super powers  
  > **username_3**: Also would like to understand the use case. if its for options at the event, perhaps you can use price sets to allow the participant to book different options.  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2019-10-09. Score: 1
  
  You can also set up a Price Set option so one person can buy multiple tickets while only entering their own details once.
  
  
  ---
  
  ### Answer by username_0 on 2019-10-09. Score: 0
  
  This is configurable through t Event Mgmt, Online Registration page.
  
  > **Comments:**
  > **username_3**: That allows multiple different people to be registered by one person, but not the same person multiple times, which is what is being asked for.  
  > **username_0**: You can set the option to use the same email (same person) multiple times, it is the option underneath the one you mentioned (multiple reg), and is named 'Same email address' which allows the same email to be used > 1x in an event.  
  > **username_3**: You can set allowing the same email (and I use that because sometimes couples share the same email) but it insists that the First and Last names are not both the same. Maybe you are using a weaker de-duplcation rule.  
  > **username_0**: We do have the flag 'allow same email' set for events, but the code in participant.php isn't checking the value of that flag in Events; the theater wants to allow people to register again to add more seats (using the same name & email) after a first registration.  
  
  ---
  
  ### Answer by username_0 on 2019-11-20. Score: 0
  
  I added this to CRM/Event/Form/Participant.php line 861
  $eventId = CRM\_Utils\_Array::value('event\_id', $values);
  
  > > $sql = 'select allow\_same\_participant\_emails from civicrm\_event where id = '.$eventId;
  > > $dao = CRM\_Core\_DAO::executeQuery($sql );
  > > $dao->query($sql);
  > > $same\_emails = NULL;
  > > while ($dao->fetch()) {
  > > $same\_emails = $dao->allow\_same\_participant\_emails;
  > > }
  
  And then at line 878, check the value of $same\_emails:
  if ( !empty($dupeCheck->id) && (empty($same\_emails) or ($same\_emails < 1)) ) {
  $errorMsg['event\_id'] = ts("This contact has already been assigned to this event.");
  }
  
  
  ---
  
  