Answers.Body: <p>In the end, I was not able to get this to work.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-10T20:29:34.513Z
Answers.LastActivityDate: 2016-04-10T20:29:34.513Z
Answers.UserDisplayName: pmoz
Answers.Body: <blockquote>
    <p>Do the contacts have to be logged on and/or known users for Auto
    Discount to work properly?</p>
  </blockquote>
  
  <p>Yes I believe this is the case.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-16T18:22:37.610Z
Answers.LastActivityDate: 2019-04-16T18:22:37.610Z
Answers.UserDisplayName: Jamie Novick - Compucorp
Body: <p>Drupal 7.39<br>
  Civi version 4.6.7</p>
  
  <p>Using CiviDiscount 3.1 to add Automatic Discount to an event for folks under 18.</p>
  
  <p>In researching, I saw a <a href="https://github.com/dlobo/org.civicrm.module.cividiscount/pull/120" rel="nofollow noreferrer">PR</a> referenced, that seems to address the issue, but it still doesn't work for me on two different sites.  I applied the patch but it doesn't seem to do anything.</p>
  
  <p>Perhaps I'm misunderstanding the Auto Discount section, but in our use case, folks registering are more often than not, new unknown contacts as they register.  Do the contacts have to be logged on and/or known users for Auto Discount to work properly?</p>
  
  <p>On the registration pages, we are including DOB.</p>
  
  <p>However, regardless of whether we hit apply in the blank code area, the discount is not taken.</p>
  
  <p>If we manually enter the code and hit apply, it works. But seems to disregard the age criteria.  If I am over 18 and have entered the code, I still get the discount.</p>
  
  <p>Our discount configuration looks like this:
  <a href="https://i.sstatic.net/mKmKH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/mKmKH.png" alt="enter image description here"></a></p>
  
  <p>So the two issues I'm experiencing are:</p>
  
  <ul>
  <li>The discount does not apply without the code </li>
  <li>The discount criteria seems to be ignored and applies the discount to
  anyone</li>
  </ul>
  
Tags: <civievent><drupal><cividiscount>
Title: How do I set up discount for people under 18 for CiviEvent?
ThreadText: # How do I set up discount for people under 18 for CiviEvent?
  
  (Asked by: username_0 on 2015-10-10)
  
  Drupal 7.39  
  Civi version 4.6.7
  
  Using CiviDiscount 3.1 to add Automatic Discount to an event for folks under 18.
  
  In researching, I saw a [PR](https://github.com/dlobo/org.civicrm.module.cividiscount/pull/120) referenced, that seems to address the issue, but it still doesn't work for me on two different sites. I applied the patch but it doesn't seem to do anything.
  
  Perhaps I'm misunderstanding the Auto Discount section, but in our use case, folks registering are more often than not, new unknown contacts as they register. Do the contacts have to be logged on and/or known users for Auto Discount to work properly?
  
  On the registration pages, we are including DOB.
  
  However, regardless of whether we hit apply in the blank code area, the discount is not taken.
  
  If we manually enter the code and hit apply, it works. But seems to disregard the age criteria. If I am over 18 and have entered the code, I still get the discount.
  
  Our discount configuration looks like this:
  [![enter image description here](https://i.sstatic.net/mKmKH.png)](https://i.sstatic.net/mKmKH.png)
  
  So the two issues I'm experiencing are:
  
  * The discount does not apply without the code
  * The discount criteria seems to be ignored and applies the discount to
    anyone
  
  **Tags:** civievent, drupal, cividiscount
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2016-04-10. Score: 0 | Accepted answer
  
  In the end, I was not able to get this to work.
  
  
  ---
  
  ### Answer by username_1 on 2019-04-16. Score: 1
  
  > Do the contacts have to be logged on and/or known users for Auto
  > Discount to work properly?
  
  Yes I believe this is the case.
  
  
  ---
  
  