PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

adding a 'number' field to the 'option field' for the Price fields

  1. I do use an option field to have a customer select an extra article to be added to a product selection made before. I do use the GravityForms add-on in WooCommerce to integrate this form in WooCommerce.

    However my customer wants to insert a number of articles for each option. So the option field should ook like this:

    option name1, fill in the number you want, price per each, total price for this option
    option name2, fill in the number you want, price per each, total price for this option
    etc.

    so: subtotal-per-line=number-per-line * price-per-line

    And all of the 'total price for this option' added together should be added to the base price.

    Is that possible?
    Kind Regards,

    Peter Luit
    Netherlands

    Posted 6 years ago on Wednesday July 10, 2013 | Permalink
  2. Peter,

    Product fields have quantities, option fields are tied to product fields so it respects the quantity of the product field. You'll probably need to use individual product fields here.

    Posted 6 years ago on Wednesday July 10, 2013 | Permalink
  3. Rob,

    I tried that and that is indeed working in the total calculation. The thing is however, that when using this method, the shoppingcart in WooCommerce shows all the 'not-used' fields as well. In other words, if I just buy a quantity of 5 of one item, all the other items left 0, will also show up in the shopping cart. I do not like that. Since I am talking about the add-on in between GF en WC, I don't know where to ask.....

    Kind Regards,

    Peter

    Posted 6 years ago on Wednesday July 10, 2013 | Permalink
  4. Richard Vav
    Administrator

    As the add-on was developed by Woo they are the ones best placed to assist you with this issue.

    Posted 6 years ago on Wednesday July 10, 2013 | Permalink
  5. @Richard, but this is just a question on how to extend YOUR options filed in the Products set of fields. I just want to have the possibility to have an 'amount' input for the 'options'. Do you understand my request?

    Posted 6 years ago on Thursday July 11, 2013 | Permalink