Answers.Body: <p>According to <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Webform+CiviCRM+Integration#WebformCiviCRMIntegration-ComparedtoCiviCRMProfiles" rel="nofollow noreferrer">the wiki</a> <code>Webforms do not support CiviCRM price-sets or discount codes</code>.  You could try <a href="https://www.drupal.org/project/issues/webform_civicrm" rel="nofollow noreferrer">creating an issue</a> and asking what it would take to get CiviDiscount supported.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-16T21:25:31.627Z
Answers.Text: I feel like your answer is the most technically correct, while KarinG's was more helpful to my situation. Wish I could give you both the green checkbox.
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-05T19:40:18.550Z
Answers.Text: See https://www.drupal.org/project/webform_civicrm/issues/2930351
Answers.UserDisplayName: Hans Rossel
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-16T09:41:32.077Z
Answers.LastActivityDate: 2017-02-16T09:41:32.077Z
Answers.UserDisplayName: Aidan
Answers.Body: <p>There are ways in which to do discounts in webform civicrm - conditionals / fields using native webform fields and native webform conditionals.</p>
  
  <p>In your specific case an easy way to handle this would be to have two webform civicrm forms - one with member pricing and one with non-member pricing [you can set the Amount fields
   to what you need it to be] and then use the native drupal permissions to show/hide (visibility settings) a block that links to the proper form.</p>
  
  <p>So if you're logged in as a member and have a member role -> show member register block; if you're not logged in -> show non member register block.</p>
  
  <p>And yes you can sign up for more than one event using webform civicrm effectively creating a shopping cart; the only issue there is that the CiviCRM GUI does not understand you can pay for 2 or more events with 1 payment (so it will look like you paid too much for each individual event); </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-16T13:07:52.877Z
Answers.LastActivityDate: 2017-02-16T13:14:48.867Z
Answers.LastEditDate: 2017-02-16T13:14:48.867Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>On Drupal 7.x and CiviCRM 4.6 and using latest CiviDiscount, is it possible to offer member discounts on a webform?</p>
  
  <p>Specifically, we are offering 5 Webinars (all CiviEvents), which are included in our Webform as components. We notice that when we make a CiviDiscount with an automatic member discount, it does not apply to our webform submission.</p>
  
  <p>Is there an alternative way to enable this functionality? I've thought about having Member pricing be another select option and using jQuery to check the users role, but that is more effort to maintain. Any thoughts?</p>
  
  <p>The ultimate goal is to have 1 form where people can sign up for many events at once, and come back and sign up for other ones later, with one payment. We looked at CiviEvent Shopping Cart but it has some significant design flaws currently.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-03T23:50:07.377Z
Comments.Text: how did you go with this? 2 separate forms?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-05T00:12:45.623Z
Comments.Text: I just made a Drupal view which listed out the 5 CiviEvents with separate register buttons. We abandoned the idea of letting people buy them ala cart. I'd love to have that feature, though! We looked into the Civi shopping cart system but felt there were too many rough edges to go with it.
Comments.UserDisplayName: Zachary
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-05T04:06:10.860Z
Comments.Text: I can demo to you how we are approaching this some time if you want. Webform allowing myltiple people to be registered for myltiple events, and not all for all same events either, eg p1 for e2 and e3, and p2 for e1 and e3, and p3 for e1, e2, e3 - has a LOT of conditionals on it
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-06T04:40:47.010Z
Comments.Text: Petednz I'd love that. Can I tip you somehow?
Comments.UserDisplayName: Zachary
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-06T07:19:29.067Z
Comments.Text: sure we can figure out something - what timezone are you in? 12 hours or so from now might work (Saturday morning here then) peter.davis59 if skype works for you, or ping me via chat.civicrm.org
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-06T17:41:45.700Z
Comments.Text: PST, USA. Can I hop on skype in 2 hours?
Comments.UserDisplayName: Zachary
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-10-06T18:42:34.300Z
Comments.Text: sure. at computer for most of day.
Comments.UserDisplayName: petednz - fuzion
Tags: <civievent><cividiscount>
Title: Discounts with Webform_CiviCRM and Event Registration
ThreadText: # Discounts with Webform_CiviCRM and Event Registration
  
  (Asked by: username_0 on 2017-02-16)
  
  On Drupal 7.x and CiviCRM 4.6 and using latest CiviDiscount, is it possible to offer member discounts on a webform?
  
  Specifically, we are offering 5 Webinars (all CiviEvents), which are included in our Webform as components. We notice that when we make a CiviDiscount with an automatic member discount, it does not apply to our webform submission.
  
  Is there an alternative way to enable this functionality? I've thought about having Member pricing be another select option and using jQuery to check the users role, but that is more effort to maintain. Any thoughts?
  
  The ultimate goal is to have 1 form where people can sign up for many events at once, and come back and sign up for other ones later, with one payment. We looked at CiviEvent Shopping Cart but it has some significant design flaws currently.
  
  **Tags:** civievent, cividiscount
  
  > **Comments:**
  > **username_1**: how did you go with this? 2 separate forms?  
  > **username_0**: I just made a Drupal view which listed out the 5 CiviEvents with separate register buttons. We abandoned the idea of letting people buy them ala cart. I'd love to have that feature, though! We looked into the Civi shopping cart system but felt there were too many rough edges to go with it.  
  > **username_1**: I can demo to you how we are approaching this some time if you want. Webform allowing myltiple people to be registered for myltiple events, and not all for all same events either, eg p1 for e2 and e3, and p2 for e1 and e3, and p3 for e1, e2, e3 - has a LOT of conditionals on it  
  > **username_0**: Petednz I'd love that. Can I tip you somehow?  
  > **username_1**: sure we can figure out something - what timezone are you in? 12 hours or so from now might work (Saturday morning here then) peter.davis59 if skype works for you, or ping me via chat.civicrm.org  
  > **username_0**: PST, USA. Can I hop on skype in 2 hours?  
  > **username_1**: sure. at computer for most of day.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_4 on 2017-02-16. Score: 4 | Accepted answer
  
  There are ways in which to do discounts in webform civicrm - conditionals / fields using native webform fields and native webform conditionals.
  
  In your specific case an easy way to handle this would be to have two webform civicrm forms - one with member pricing and one with non-member pricing [you can set the Amount fields
  to what you need it to be] and then use the native drupal permissions to show/hide (visibility settings) a block that links to the proper form.
  
  So if you're logged in as a member and have a member role -> show member register block; if you're not logged in -> show non member register block.
  
  And yes you can sign up for more than one event using webform civicrm effectively creating a shopping cart; the only issue there is that the CiviCRM GUI does not understand you can pay for 2 or more events with 1 payment (so it will look like you paid too much for each individual event);
  
  
  ---
  
  ### Answer by username_2 on 2017-02-16. Score: 3
  
  According to [the wiki](https://wiki.civicrm.org/confluence/display/CRMDOC/Webform+CiviCRM+Integration#WebformCiviCRMIntegration-ComparedtoCiviCRMProfiles) `Webforms do not support CiviCRM price-sets or discount codes`. You could try [creating an issue](https://www.drupal.org/project/issues/webform_civicrm) and asking what it would take to get CiviDiscount supported.
  
  > **Comments:**
  > **username_0**: I feel like your answer is the most technically correct, while KarinG's was more helpful to my situation. Wish I could give you both the green checkbox.  
  > **username_3**: See https://www.drupal.org/project/webform_civicrm/issues/2930351  
  
  ---
  
  