Answers.Body: <p>We have this exact same use case (i.e., we want the user to make all the price selections on the first page / first participant form, then only require the participant info for the additional participants). Solved it by adding the following to the very end of our version of the AdditionalParticipant.tpl template:</p>
  <pre><code>{literal}
  &lt;script&gt;
  if (!document.getElementById(&quot;noOfparticipants&quot;) &amp;&amp; document.getElementById(&quot;price_282&quot;)) {
  document.getElementById(&quot;priceset&quot;).style.display = &quot;none&quot;;
  }
  &lt;/script&gt;
  {/literal}
  </code></pre>
  <p>This looks for the <code>noOfparticipants</code> ID (which only exists on the first participant form, and if not present, and if the price field ID 282 is present, then it hides the entire <code>priceset</code> ID element. (Obviously, replace the field ID value as appropriate.)</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-14T05:00:17.800Z
Answers.LastActivityDate: 2022-06-14T05:00:17.800Z
Answers.UserDisplayName: MtnPavlas
Answers.Body: <p>There was this proposed means to hide selected price set rows for additional participants:</p>
  <p><a href="https://civicrm.stackexchange.com/questions/29237/cividiscount-how-do-i-disable-the-automatic-member-discount-for-additional-part">CiviDiscount: How do I disable the automatic member discount for additional participants?</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-11T14:05:15.777Z
Answers.LastActivityDate: 2022-06-11T14:05:15.777Z
Answers.UserDisplayName: Clement Leong
Body: <p>For the dinner event I need to be able to track the use of the civi discount code so I set up the additional registrant field to effectively count the number of times the discount code is being used and by whom. </p>
  
  <p>Now, the problem is that when I test-drive the registration page the Price set that I have for the event shows up for each of the additional registrants. So when my attendees register and choose to 2 additional registrants and then click to the next page to enter in the additional contact information they might think that they need to enter 1 in the price set for each of their contacts. This would then have my discount code counting all wrong because instead of calculation two people it has calculated four.</p>
  
  <p>This might actually be a additional registrant problem because one participant is going to be paying for their entire group and I want to be able to hide the price set for the additional registrants.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-12-27T13:44:14.540Z
Comments.Text: CiviDiscount should allow you to track the number of times a code is used and also reports to the contact when they've used a code. But it may still be in your best interest to collect additional registrant information (you might have two separate questions here).
Comments.UserDisplayName: RayWright
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-12-28T21:45:22.103Z
Comments.Text: I think the issue is that I can not hide the price set for the additional registrants when I test drive the online registration. Do you have any suggestions?
Comments.UserDisplayName: Lea
Tags: <civievent><registration><price-sets><cividiscount>
Title: Civi Event: Price Set, Additional Registrants ( Hiding the price set for the additional registrant)
ThreadText: # Civi Event: Price Set, Additional Registrants ( Hiding the price set for the additional registrant)
  
  (Asked by: username_0 on 2017-12-22)
  
  For the dinner event I need to be able to track the use of the civi discount code so I set up the additional registrant field to effectively count the number of times the discount code is being used and by whom.
  
  Now, the problem is that when I test-drive the registration page the Price set that I have for the event shows up for each of the additional registrants. So when my attendees register and choose to 2 additional registrants and then click to the next page to enter in the additional contact information they might think that they need to enter 1 in the price set for each of their contacts. This would then have my discount code counting all wrong because instead of calculation two people it has calculated four.
  
  This might actually be a additional registrant problem because one participant is going to be paying for their entire group and I want to be able to hide the price set for the additional registrants.
  
  **Tags:** civievent, registration, price-sets, cividiscount
  
  > **Comments:**
  > **username_1**: CiviDiscount should allow you to track the number of times a code is used and also reports to the contact when they've used a code. But it may still be in your best interest to collect additional registrant information (you might have two separate questions here).  
  > **username_0**: I think the issue is that I can not hide the price set for the additional registrants when I test drive the online registration. Do you have any suggestions?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2022-06-14. Score: 0
  
  We have this exact same use case (i.e., we want the user to make all the price selections on the first page / first participant form, then only require the participant info for the additional participants). Solved it by adding the following to the very end of our version of the AdditionalParticipant.tpl template:
  {literal}
  
  {/literal}
  
  This looks for the noOfparticipants ID (which only exists on the first participant form, and if not present, and if the price field ID 282 is present, then it hides the entire priceset ID element. (Obviously, replace the field ID value as appropriate.)
  
  
  ---
  
  ### Answer by username_3 on 2022-06-11. Score: 0
  
  There was this proposed means to hide selected price set rows for additional participants:
  
  [CiviDiscount: How do I disable the automatic member discount for additional participants?](https://civicrm.stackexchange.com/questions/29237/cividiscount-how-do-i-disable-the-automatic-member-discount-for-additional-part)
  
  
  ---
  
  