Answers.Body: <p>This can be done if you set the Input field type to <strong>Text/Numeric Quantity</strong> when you create a price field.</p>
  
  <p>You will need to create one price field per option.  There are two slight variations for this field type. Based on your question I think the following will work for you: </p>
  
  <ul>
  <li>If A costs $5, set the "<strong>Price</strong>" field to 5.00 and make the field's label something like "Number of $5 Widgets"</li>
  </ul>
  
  <p>and so on for B, C and D.</p>
  
  <p>The other option, mostly used for donations, can be found in our book in the section on  <a href="https://docs.civicrm.org/user/en/latest/membership/membership-price-sets/" rel="nofollow noreferrer">membership pricesets</a>. You will need to scroll down to the section on <strong>Non-membership price fields</strong>.   </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-11T23:08:34.687Z
Answers.LastActivityDate: 2018-03-29T23:05:12.200Z
Answers.LastEditDate: 2018-03-29T23:05:12.200Z
Answers.UserDisplayName: JoAnne
Body: <p>We want to have our price set have options such as</p>
  
  <p>A
  B
  C 
  D</p>
  
  <p>but we want to have a quantity field for each option</p>
  
  <p>X  A
  X  B
  X  C
  X  D</p>
  
  <p>and have it calculated at the end of the form.</p>
  
  <p>Is this possible or achievable with native CiviCRM functionality, or is there a way to adjust the code to suit our needs that has been done before?</p>
  
Tags: <civicontribute>
Title: Price Set fields with Quantity per Option
ThreadText: # Price Set fields with Quantity per Option
  
  (Asked by: username_0 on 2015-06-11)
  
  We want to have our price set have options such as
  
  A
  B
  C
  D
  
  but we want to have a quantity field for each option
  
  X A
  X B
  X C
  X D
  
  and have it calculated at the end of the form.
  
  Is this possible or achievable with native CiviCRM functionality, or is there a way to adjust the code to suit our needs that has been done before?
  
  **Tags:** civicontribute
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-06-11. Score: 4 | Accepted answer
  
  This can be done if you set the Input field type to **Text/Numeric Quantity** when you create a price field.
  
  You will need to create one price field per option. There are two slight variations for this field type. Based on your question I think the following will work for you:
  
  * If A costs $5, set the "**Price**" field to 5.00 and make the field's label something like "Number of $5 Widgets"
  
  and so on for B, C and D.
  
  The other option, mostly used for donations, can be found in our book in the section on [membership pricesets](https://docs.civicrm.org/user/en/latest/membership/membership-price-sets/). You will need to scroll down to the section on **Non-membership price fields**.
  
  
  ---
  
  