- gflandreAsked on August 22, 2017 at 03:10 PM
Thank you for fixing this issue.
However, there's still some behavior that I would like to understand: it seems that I am able to go to the payment form without selecting an option associated to a product.
Think of shoe sizes for example, isn't it weird to be able to order shoes without specifying a size?
There doesn't seem to be an option for this.
- JotForm SupportdavidAnswered on August 22, 2017 at 03:22 PM
To set up sizes, you would need to set up a sub-product for each size offered. Here is our guide on setting up sub-products:
You could also set the products up outside of the payment field which would give you more control over what types of fields are used and allow for more customized products but would also require a much different set up.
Basically, you would user regular fields to set up your products and assign calculation values:
You would then use those values in a calculation field:
You would then pass that total to the payment field:
- gflandreAnswered on August 22, 2017 at 03:27 PM
This question was moved from another thread so it misses the initial context which is that I'm using Stripe as a payment provider.
It seems that Stripe only allows to create subproducts from options if there's a quantity field (I don't need one)
Also, I don't think the calculation field works with Stripe, right?
Thanks for helping,
- JotForm SupportdavidAnswered on August 22, 2017 at 03:42 PM
Sub-products do require a quantity to be present. If it's single selections, you would need a single product for each size instead of using sub-products.
Calculations values can be passed to Stripe. That set up works the same regardless of the payment processor.
- gflandreAnswered on August 22, 2017 at 03:51 PM
Sure, but that would mean having something like:
 T-shirt Green
 T-shirt Yellow
 T-shirt Blue
 T-shirt Black
 T-shirt Red
...and so on which is a bit over the top in my opinion (imagine for shoe sizes)
For the calculation field, from what i understand, that would mean having a User defined value, which is a totally different way of paying, and not the one I would like to offer, as customers would be able to manipulate the amount.
- JotForm SupportMikeAnswered on August 22, 2017 at 05:30 PM
The product option should not be empty. It seems to be an issue in our new layout and we will ask our developers to check this.
The calculations can be based on different fields (e.g. number, radio button, check box, dropdown, etc), please see the next guide to get an idea on this.
Once the value is calculated it can be set to the read only mode and passed to the payment field.
- gflandreAnswered on August 23, 2017 at 05:38 PM
Thanks for your answer!
Let me know when this gets fixed.
- kutluAnswered on August 24, 2017 at 11:00 AM
The issue has been fixed. Now there is default selected option for options.