Answers.Body: <p>The info.xml of the extension you linked to strongly suggests it will do what you want.  You specify that certain price options include a membership.  If that doesn't work, you're going to need to write an extension to handle this.  Memberships aren't available on event pages without an extension.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-22T00:03:50.020Z
Answers.Text: From the Extension page:
  
  "When people sign up for an event, you may want to offer registration for an additional event or membership dues while they're checking out.  This extension ties event registration or membership to a price option, so you have full control over the price--potentially offering a discounted bundle rate."
  
  You can offer a discount on the membership itself (as a price option) using Cividiscount. However, I do not see a way to have that price option selected, and then based on the selection, discount other price options on the form.
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-21T23:36:28.413Z
Answers.LastActivityDate: 2016-05-21T23:36:28.413Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>We have done this with Drupal Commerce and Rules... it gives you lots of flexibility but does involve a significant amount of work.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-24T17:19:54.950Z
Answers.Text: Do you experience Drupal Commerce/Rules being able to be used for Event Management purposes? That is why we are using Civi primarily, because we can list participants, change their registrations, send receipts/emails, and use CiviMail to do mailings, automated reminders, etc.
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-25T21:47:57.153Z
Answers.Text: We hooked Drupal Commerce into CiviEvents using rules so our client could get the best of both worlds!
Answers.UserDisplayName: Andrew
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-27T05:07:55.440Z
Answers.Text: Any chance of a writeup ? :)
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-24T08:17:03.977Z
Answers.LastActivityDate: 2016-05-24T08:17:03.977Z
Answers.UserDisplayName: Andrew
Answers.Body: <p>I have done a lot of this kind of discount in the past using jquery. My approach would be to add the discounted prices in the event price set with the undiscounted ones as a multiple radio option and have jquery hide them onload. I would then add a trigger to either the role selection or an additional price set item that will unhide the appropriate event price.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-24T17:19:11.467Z
Answers.Text: If javascript is disabled, then the user could see both and choose the cheaper one? Also, this may complicate reporting - we'd have to do add the results of both fields together to get the right count (not a big deal, just extra work)
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-04T08:14:58.877Z
Answers.Text: I did a JavaScript enabled and browser version check before the forms would load. All fields in the same price set will be added together.
Answers.UserDisplayName: Generic
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-04T08:30:26.510Z
Answers.Text: To help with reports, I would sometimes add a hidden field (tag, group or custom question) that jquery triggered when the price selection was made.
Answers.UserDisplayName: Generic
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-24T08:14:11.687Z
Answers.LastActivityDate: 2016-05-24T11:20:05.797Z
Answers.LastEditDate: 2016-05-24T11:20:05.797Z
Answers.UserDisplayName: Generic
Answers.Body: <p>The Event Membership Signup extension is designed for this purpose--to give a discounted price for the membership/event combo--but it won't help in certain complex scenarios. </p>
  
  <p>If your event fee is $100, and your membership fee is $50, and you want to give a $20 combo discount, there are two ways to do it. You could add a new price field with a single checkbox option for $30 membership, or you could add a new option to your existing event price field offering a registration and membership together for $130.</p>
  
  <p>On the other hand, you cannot (without custom code) say that selecting the membership option gives 20% off on each of a bunch of possible add-on items.  The discount comes from the price you assign to the option that gives you the membership, so the discount can't be variable.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-22T01:54:41.703Z
Answers.Text: Makes sense. Any samples or advise about how to make custom code that would do as I described below? If one chooses the Membership Price Field (normal price), then it would dynamically reduce the price of other options by 10%. If they de-selected the membership, it would revert back to normal price.
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-22T13:58:32.650Z
Answers.Text: @Andrew - great little extension - voted you up!
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-22T15:33:40.793Z
Answers.Text: @Zachary check out [hook_civicrm_buildAmount](https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_buildAmount) which is the hook you'd use to discount the other selected items when the membership item is selected.  It won't provide your users immediate feedback on the discount--you'll need to write Javascript to update prices when they select the membership add-on--but it will display correctly on the confirmation and thank-you pages.
Answers.UserDisplayName: Andie Hunt
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-22T19:25:47.843Z
Answers.Text: @AndrewHunt I am going to accept your answer because the comment you left was what I consider to be the solution in tandem with the extension mentioned.
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-22T01:45:59.500Z
Answers.LastActivityDate: 2016-05-22T01:45:59.500Z
Answers.UserDisplayName: Andie Hunt
Body: <p>Is it possible to have a CiviEvent page that offers a membership, and if you select that membership, receive a discount on certain price set options in the same form?</p>
  
  <p>I found this: <a href="https://github.com/aghstrategies/com.aghstrategies.eventmembershipsignup" rel="nofollow">https://github.com/aghstrategies/com.aghstrategies.eventmembershipsignup</a></p>
  
  <p>However it remains unclear if it will do the above. </p>
  
  <p>Things I've considered:</p>
  
  <ol>
  <li><p>Webform CiviCRM. Can't use it because it does not support complex price sets and loses the abilities of Civi to change/update registrations.</p></li>
  <li><p>Drupal Commerce / Rules - same as above.</p></li>
  <li><p>Having people sign up for Membership using Contribution Page, pay, then go to Event page, pay. Two payments, too many steps.</p></li>
  </ol>
  
  <p>Thank you for your help.</p>
  
  <p>Reasoning: we want to encourage people to join as a Member to receive a discount from our event and have it done on one form. Currently there is no easy pathway for this AFAIK.</p>
  
Tags: <civievent><civimember>
Title: How to sell membership on event page and apply the membership discount? (Autodiscount)
ThreadText: # How to sell membership on event page and apply the membership discount? (Autodiscount)
  
  (Asked by: username_0 on 2016-05-16)
  
  Is it possible to have a CiviEvent page that offers a membership, and if you select that membership, receive a discount on certain price set options in the same form?
  
  I found this: <https://github.com/aghstrategies/com.aghstrategies.eventmembershipsignup>
  
  However it remains unclear if it will do the above.
  
  Things I've considered:
  
  1. Webform CiviCRM. Can't use it because it does not support complex price sets and loses the abilities of Civi to change/update registrations.
  2. Drupal Commerce / Rules - same as above.
  3. Having people sign up for Membership using Contribution Page, pay, then go to Event page, pay. Two payments, too many steps.
  
  Thank you for your help.
  
  Reasoning: we want to encourage people to join as a Member to receive a discount from our event and have it done on one form. Currently there is no easy pathway for this AFAIK.
  
  **Tags:** civievent, civimember
  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_4 on 2016-05-22. Score: 6 | Accepted answer
  
  The Event Membership Signup extension is designed for this purpose--to give a discounted price for the membership/event combo--but it won't help in certain complex scenarios.
  
  If your event fee is $100, and your membership fee is $50, and you want to give a $20 combo discount, there are two ways to do it. You could add a new price field with a single checkbox option for $30 membership, or you could add a new option to your existing event price field offering a registration and membership together for $130.
  
  On the other hand, you cannot (without custom code) say that selecting the membership option gives 20% off on each of a bunch of possible add-on items. The discount comes from the price you assign to the option that gives you the membership, so the discount can't be variable.
  
  > **Comments:**
  > **username_0**: Makes sense. Any samples or advise about how to make custom code that would do as I described below? If one chooses the Membership Price Field (normal price), then it would dynamically reduce the price of other options by 10%. If they de-selected the membership, it would revert back to normal price.  
  > **username_5**: @username_2 - great little extension - voted you up!  
  > **username_4**: @username_0 check out [hook_civicrm_buildAmount](https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_buildAmount) which is the hook you'd use to discount the other selected items when the membership item is selected.  It won't provide your users immediate feedback on the discount--you'll need to write Javascript to update prices when they select the membership add-on--but it will display correctly on the confirmation and thank-you pages.  
  > **username_0**: @AndrewHunt I am going to accept your answer because the comment you left was what I consider to be the solution in tandem with the extension mentioned.  
  
  ---
  
  ### Answer by username_1 on 2016-05-21. Score: 2
  
  The info.xml of the extension you linked to strongly suggests it will do what you want. You specify that certain price options include a membership. If that doesn't work, you're going to need to write an extension to handle this. Memberships aren't available on event pages without an extension.
  
  > **Comments:**
  > **username_0**: From the Extension page:  "When people sign up for an event, you may want to offer registration for an additional event or membership dues while they're checking out.  This extension ties event registration or membership to a price option, so you have full control over the price--potentially offering a discounted bundle rate."  You can offer a discount on the membership itself (as a price option) using Cividiscount. However, I do not see a way to have that price option selected, and then based on the selection, discount other price options on the form.  
  
  ---
  
  ### Answer by username_2 on 2016-05-24. Score: 0
  
  We have done this with Drupal Commerce and Rules... it gives you lots of flexibility but does involve a significant amount of work.
  
  > **Comments:**
  > **username_0**: Do you experience Drupal Commerce/Rules being able to be used for Event Management purposes? That is why we are using Civi primarily, because we can list participants, change their registrations, send receipts/emails, and use CiviMail to do mailings, automated reminders, etc.  
  > **username_2**: We hooked Drupal Commerce into CiviEvents using rules so our client could get the best of both worlds!  
  > **username_0**: Any chance of a writeup ? :)  
  
  ---
  
  ### Answer by username_3 on 2016-05-24. Score: 0
  
  I have done a lot of this kind of discount in the past using jquery. My approach would be to add the discounted prices in the event price set with the undiscounted ones as a multiple radio option and have jquery hide them onload. I would then add a trigger to either the role selection or an additional price set item that will unhide the appropriate event price.
  
  > **Comments:**
  > **username_0**: If javascript is disabled, then the user could see both and choose the cheaper one? Also, this may complicate reporting - we'd have to do add the results of both fields together to get the right count (not a big deal, just extra work)  
  > **username_3**: I did a JavaScript enabled and browser version check before the forms would load. All fields in the same price set will be added together.  
  > **username_3**: To help with reports, I would sometimes add a hidden field (tag, group or custom question) that jquery triggered when the price selection was made.  
  
  ---
  
  