Answers.Body: <p>Posting the settings (or a screenshot) of your conditional statements for the form would be helpful. The end-goal isn't <em>quite</em> clear, I will assume you want to charge $35 if a participant selects both events.</p>
  
  <p>My first guess is that you're only using an 'or' condition when you need to also use an 'and' or else both events get set up to $20 whenever event 2 is selected... Try a conditional setup like 'If event 1, set $15', 'If event 2, set $20', if event 1 AND event 2, set $35'.</p>
  
  <p>Depending on the order of operations for conditionals, you may need to be as explicit as something like 'If event 1 NAND (and not) 2, set $15', If event 2 NAND 1, set $20', 'If event 1 AND 2, set $35'.</p>
  
  <p>Someone can correct me, but as far as I know CiviDiscount is not compatible with contributions through webform, as I have not found a way, and there is no mention of webform in the civiDiscount documentation (<a href="https://github.com/dlobo/org.civicrm.module.cividiscount" rel="nofollow">https://github.com/dlobo/org.civicrm.module.cividiscount</a>)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-28T21:58:28.527Z
Answers.Text: Thanks for your help! I added a screenshot, maybe that can clarify a bit. If I have to add conditionals for each combination, conditionals may not be a tenable solution...we have different events at different prices coming and going rather constantly.
Answers.UserDisplayName: naomisl
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-28T21:58:48.353Z
Answers.Text: And yes, the end goal is to charge $35 when both events are registered for.
Answers.UserDisplayName: naomisl
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-02T15:39:02.850Z
Answers.Text: Try just adding "if both, set $35". If you just have sets of 2 events at a time, this should be relatively painless. If more, possibly try either KarinG's solution above (although the 'balance owed' might be equally painful, administratively), or this extension which has been suggested to me before, but I haven't tried it yet, which I believe would allow multiple events to be aggregated in a civiCRM event page rather than a webform (assuming you are not using other webform-specific functionality): https://civicrm.org/extensions/event-additional-signup
Answers.UserDisplayName: Eli Lisseck
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-28T14:17:28.173Z
Answers.LastActivityDate: 2016-07-28T14:17:28.173Z
Answers.UserDisplayName: Eli Lisseck
Answers.Body: <p>In case it is of interest I put together <a href="https://www.fuzion.co.nz/node/578" rel="nofollow noreferrer">some documentation</a> of a complex Webform set up that allows for multiple people to be registered for multiple events independent of each other, eg c1 can register for A and C, c2 can register for A and B, c3 can register for A and B and C.</p>
  
  <p>There are a lot of conditionals involved ;-)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-07T00:50:57.023Z
Answers.LastActivityDate: 2017-12-07T00:50:57.023Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>Ah yes - you can do this without Conditionals! @Coleman showed me at the CiviCON sprint back in Ft Collins - Here's how in screenshots (below):</p>
  
  <p><strong>NOTE:</strong> the only downside is... that CiviCRM core isn't expecting that this is possible - so if you end up checking a participant record - it thinks you owe someone a refund [having paid $500 - the event was only $300]. But if you can make that clear to your admins - they can work with this. </p>
  
  <p><strong>1. In Webform CiviCRM tab -> Event Registration:</strong>
  <a href="https://i.sstatic.net/G3elY.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/G3elY.png" alt="enter image description here"></a></p>
  
  <p><strong>2. In Webform tab -> hit Edit</strong> on the two participant fees - and add a $ number:
  <a href="https://i.sstatic.net/ZIXYt.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ZIXYt.png" alt="enter image description here"></a></p>
  
  <p><strong>3. This is what it looks</strong> like for the user (View Webform):</p>
  
  <p><a href="https://i.sstatic.net/n07s6.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/n07s6.png" alt="enter image description here"></a></p>
  
  <p><strong>4. And on the Payment Page of the Webform:</strong>
  <a href="https://i.sstatic.net/FBgIs.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/FBgIs.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-02T20:36:36.180Z
Answers.Text: Happy to help out!
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-29T17:00:45.997Z
Answers.LastActivityDate: 2016-07-29T17:00:45.997Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I have a webform that users use to register themselves and their family members for events. These events have fees, and in the past I have linked users to a contribution page that they use separately form registration. We just got a better payment processor, so now webform can take fees! If, that is, I can figure out how to make it work. </p>
  
  <p>Right now, I have it working like this:</p>
  
  <ul>
  <li>User selects events they want to register for</li>
  <li>"Event Fee" field is private so that it is hidden from the user</li>
  <li>There are 2 conditionals in the webform so that if user selects event1, the fee is $15, and if user selects event2, the fee is $20.</li>
  </ul>
  
  <p><a href="https://i.sstatic.net/Robaa.jpg" rel="noreferrer"><img src="https://i.sstatic.net/Robaa.jpg" alt="conditionals setup"></a></p>
  
  <p>Currently, this results in the correct fee if users select any one event, but if they select both, it charges the higher price ($20) for both events, for a total of $40. </p>
  
  <p>So my questions are:</p>
  
  <ol>
  <li>Can event fees be combined using conditionals, and if so what settings would you use? 
  or</li>
  <li>Can webform fees be automatically generated in webform another way? </li>
  </ol>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-07-28T01:46:10.873Z
Comments.Text: Also-- there's no way to add a discount code here, is there? I have CiviDiscount... (I know this is a separate q, but it's secondary so I'm not posting it yet)
Comments.UserDisplayName: naomisl
Tags: <civievent><webform-civicrm>
Title: Webform Event Fees in Combination
ThreadText: # Webform Event Fees in Combination
  
  (Asked by: username_0 on 2016-07-28)
  
  I have a webform that users use to register themselves and their family members for events. These events have fees, and in the past I have linked users to a contribution page that they use separately form registration. We just got a better payment processor, so now webform can take fees! If, that is, I can figure out how to make it work.
  
  Right now, I have it working like this:
  
  * User selects events they want to register for
  * "Event Fee" field is private so that it is hidden from the user
  * There are 2 conditionals in the webform so that if user selects event1, the fee is $15, and if user selects event2, the fee is $20.
  
  [![conditionals setup](https://i.sstatic.net/Robaa.jpg)](https://i.sstatic.net/Robaa.jpg)
  
  Currently, this results in the correct fee if users select any one event, but if they select both, it charges the higher price ($20) for both events, for a total of $40.
  
  So my questions are:
  
  1. Can event fees be combined using conditionals, and if so what settings would you use?
     or
  2. Can webform fees be automatically generated in webform another way?
  
  **Tags:** civievent, webform-civicrm
  
  > **Comments:**
  > **username_0**: Also-- there's no way to add a discount code here, is there? I have CiviDiscount... (I know this is a separate q, but it's secondary so I'm not posting it yet)  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_3 on 2016-07-29. Score: 4 | Accepted answer
  
  Ah yes - you can do this without Conditionals! @Coleman showed me at the CiviCON sprint back in Ft Collins - Here's how in screenshots (below):
  
  **NOTE:** the only downside is... that CiviCRM core isn't expecting that this is possible - so if you end up checking a participant record - it thinks you owe someone a refund [having paid $500 - the event was only $300]. But if you can make that clear to your admins - they can work with this.
  
  **1. In Webform CiviCRM tab -> Event Registration:**
  [![enter image description here](https://i.sstatic.net/G3elY.png)](https://i.sstatic.net/G3elY.png)
  
  **2. In Webform tab -> hit Edit** on the two participant fees - and add a $ number:
  [![enter image description here](https://i.sstatic.net/ZIXYt.png)](https://i.sstatic.net/ZIXYt.png)
  
  **3. This is what it looks** like for the user (View Webform):
  
  [![enter image description here](https://i.sstatic.net/n07s6.png)](https://i.sstatic.net/n07s6.png)
  
  **4. And on the Payment Page of the Webform:**
  [![enter image description here](https://i.sstatic.net/FBgIs.png)](https://i.sstatic.net/FBgIs.png)
  
  > **Comments:**
  > **username_3**: Happy to help out!  
  
  ---
  
  ### Answer by username_1 on 2016-07-28. Score: 2
  
  Posting the settings (or a screenshot) of your conditional statements for the form would be helpful. The end-goal isn't *quite* clear, I will assume you want to charge $35 if a participant selects both events.
  
  My first guess is that you're only using an 'or' condition when you need to also use an 'and' or else both events get set up to $20 whenever event 2 is selected... Try a conditional setup like 'If event 1, set $15', 'If event 2, set $20', if event 1 AND event 2, set $35'.
  
  Depending on the order of operations for conditionals, you may need to be as explicit as something like 'If event 1 NAND (and not) 2, set $15', If event 2 NAND 1, set $20', 'If event 1 AND 2, set $35'.
  
  Someone can correct me, but as far as I know CiviDiscount is not compatible with contributions through webform, as I have not found a way, and there is no mention of webform in the civiDiscount documentation (<https://github.com/dlobo/org.civicrm.module.cividiscount>)
  
  > **Comments:**
  > **username_0**: Thanks for your help! I added a screenshot, maybe that can clarify a bit. If I have to add conditionals for each combination, conditionals may not be a tenable solution...we have different events at different prices coming and going rather constantly.  
  > **username_0**: And yes, the end goal is to charge $35 when both events are registered for.  
  > **username_1**: Try just adding "if both, set $35". If you just have sets of 2 events at a time, this should be relatively painless. If more, possibly try either KarinG's solution above (although the 'balance owed' might be equally painful, administratively), or this extension which has been suggested to me before, but I haven't tried it yet, which I believe would allow multiple events to be aggregated in a civiCRM event page rather than a webform (assuming you are not using other webform-specific functionality): https://civicrm.org/extensions/event-additional-signup  
  
  ---
  
  ### Answer by username_2 on 2017-12-07. Score: 1
  
  In case it is of interest I put together [some documentation](https://www.fuzion.co.nz/node/578) of a complex Webform set up that allows for multiple people to be registered for multiple events independent of each other, eg c1 can register for A and C, c2 can register for A and B, c3 can register for A and B and C.
  
  There are a lot of conditionals involved ;-)
  
  
  ---
  
  