Answers.Body: <p>I'm thinking:</p>
  
  <ul>
  <li><p>store the scholarship amount into a custom field.</p></li>
  <li><p>pull it up on the event registration (or contribution/membership) page and use a PHP hook to calculate the balance due.</p></li>
  <li><p>this hook lives in a small extension and uses the civicrm_buildAmount hook - just like CiviDiscount does. </p></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-04T12:38:12.490Z
Answers.LastActivityDate: 2016-07-05T20:49:46.497Z
Answers.LastEditDate: 2016-07-05T20:49:46.497Z
Answers.UserDisplayName: KarinG - Semper IT
Answers.Body: <p>This is possible, but you need to know how to address the API using JSON.  Also, if you select contacts by name, you're going to need a different discount per contact.  Using a custom field might be better.</p>
  
  <p>Also note that this requires that the person filling out the contribution form be logged in!</p>
  
  <p>Attached please find an example of a CiviDiscount configuration that gives a 50% discount to anyone with a last name of "Smith".  Check out the <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API#UsingtheAPI-ExploringtheAPIanddocumentation" rel="nofollow noreferrer">API Explorer</a> if you need help with field names or syntax.</p>
  
  <p><a href="https://i.sstatic.net/xbO6x.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/xbO6x.jpg" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-04T12:26:05.120Z
Answers.Text: That's very cool but I think Naomi may be looking for a balance calculation
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-03T23:10:54.373Z
Answers.LastActivityDate: 2016-07-03T23:10:54.373Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>You can accomplish this using the webform-civicrm module.
  Simple enable 'existing user' for contact 1 in your form and use conditionals to define the price field based on the contact name.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-04T12:28:02.113Z
Answers.Text: This will work if the number of Contacts to consider a discount for is small - else you'd have to deal with a truckload of conditionals
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-04T00:53:47.263Z
Answers.LastActivityDate: 2016-07-04T00:53:47.263Z
Answers.UserDisplayName: Yossi
Body: <p>I would like to set up automatic discounts for a membership on an individual basis, so that each person's scholarship can be reflected on the membership payment page without any codes needed. It seems like this should be possible using perhaps the contact ID or something along those lines, but I haven't yet hit upon the correct setting for it. Is this possible, and if so, how would I go about doing it?</p>
  
  <p>I'm using Drupal 7, CiviCRM 4.6.18, &amp; CiviDiscount 3.2  </p>
  
Tags: <drupal><civimember><cividiscount>
Title: Can automatic CiviDiscounts be contact-specific?
ThreadText: # Can automatic CiviDiscounts be contact-specific?
  
  (Asked by: username_0 on 2016-07-01)
  
  I would like to set up automatic discounts for a membership on an individual basis, so that each person's scholarship can be reflected on the membership payment page without any codes needed. It seems like this should be possible using perhaps the contact ID or something along those lines, but I haven't yet hit upon the correct setting for it. Is this possible, and if so, how would I go about doing it?
  
  I'm using Drupal 7, CiviCRM 4.6.18, & CiviDiscount 3.2
  
  **Tags:** drupal, civimember, cividiscount
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2016-07-04. Score: 1 | Accepted answer
  
  I'm thinking:
  
  * store the scholarship amount into a custom field.
  * pull it up on the event registration (or contribution/membership) page and use a PHP hook to calculate the balance due.
  * this hook lives in a small extension and uses the civicrm\_buildAmount hook - just like CiviDiscount does.
  
  
  ---
  
  ### Answer by username_2 on 2016-07-03. Score: 2
  
  This is possible, but you need to know how to address the API using JSON. Also, if you select contacts by name, you're going to need a different discount per contact. Using a custom field might be better.
  
  Also note that this requires that the person filling out the contribution form be logged in!
  
  Attached please find an example of a CiviDiscount configuration that gives a 50% discount to anyone with a last name of "Smith". Check out the [API Explorer](https://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API#UsingtheAPI-ExploringtheAPIanddocumentation) if you need help with field names or syntax.
  
  [![enter image description here](https://i.sstatic.net/xbO6x.jpg)](https://i.sstatic.net/xbO6x.jpg)
  
  > **Comments:**
  > **username_1**: That's very cool but I think Naomi may be looking for a balance calculation  
  
  ---
  
  ### Answer by username_3 on 2016-07-04. Score: 1
  
  You can accomplish this using the webform-civicrm module.
  Simple enable 'existing user' for contact 1 in your form and use conditionals to define the price field based on the contact name.
  
  > **Comments:**
  > **username_1**: This will work if the number of Contacts to consider a discount for is small - else you'd have to deal with a truckload of conditionals  
  
  ---
  
  