- taqueriaelburritolocoAsked on November 17, 2016 at 01:57 AM
I'm trying to make a menu order form for a restaurant using PayPal or Square for payment, the problem is that creating the products with their integration is limited for this kind of form, even using conditional logic is limited, it is possible to create a form, having that form calculate the total, then adding that total to the PayPal or Square integration?, I've been searching in the forum but no luck to this specifically, thank you.
- JotForm SupportNik_CAnswered on November 17, 2016 at 03:18 AM
Yes, it is possible.
1. You can create all products by using Radio buttons:
2. Then you assign values to each of the product:
3. Now we add Form calculation widget that we will use to calculate the total price of the products:
4. Now you can use Square or PayPal and set that price is picked up from Form calculation widget (calculation field on image):
That way, you can set your products and conditions as you wish, only what is important is to have Form Calculation field so you can pass the value to Payment field.
If you have any further questions please let us know.
- taqueriaelburritolocoAnswered on November 18, 2016 at 02:19 AM
Thank you very much Nik_C, that works perfectly, I'm just having one issue, since the way to get the total amount from the form is with the "Donation" mode in Square, it don't get taxes, so I have to add two more calculations, one for Subtotal and one for Tax on the form, get a total amount (hidden on the form view) and get that amount transfer to the payment integration, all good till there, the problem is that the total amount on the payment integration shows without the "$" symbol and without decimals separator, any ideas?, maybe the "$" is not a big deal, but at least the decimal point separator will work, thank you again.
PS. this is the form, the first two categories are ready.
- JotForm SupportowenAnswered on November 18, 2016 at 03:03 AM
I have replicated the issue. Decimal separator does not exist on the payment field and this is pretty troubling. I have run some tests on another form of mine. Square field does show the decimals so I need to find what's wrong with your form.
Please allow me some time to figure out the problem. I will be sending another response in a timely manner.
- JotForm SupportowenAnswered on November 18, 2016 at 03:45 AM
Here is the solution:
1. Select your calculation field and click its wizard:
2. Click "Show advanced options":
3. Disable the option "Use commas for decimal point" option which is enabled by default:
You should do this for all the calculation fields you are using on your form. Please try this and let us know if the issue still persists.
Do contact us again if you need any further assistance.
- taqueriaelburritolocoAnswered on November 18, 2016 at 05:04 AM
That did the trick :-), no "$" symbol but is fine since the payment integration shows "USD" under the result, so it is ok, thank you guys