ticket widget calculates price and integrates with paypal how?

  • livingearthschool
    Asked on February 22, 2015 at 1:52 AM

    I looked at questions posted on the ticket widget, and also at this link: http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field but I cannot understand how to get a calculation of the total from the ticket widget and then send the user to paypal for payment.

    We have many classes listed in the ticket widget and the price is part of the info. When I try to use the payment wizard it does not show any of those as an option to "get amount from". Can you tell me how to get this to work?

     

  • Welvin Support Team Lead
    Replied on February 22, 2015 at 7:46 AM

    Hi,

    You should use our inventory widget: http://widgets.jotform.com/widget/inventory.

    Sum up the values using our calculation widget: https://www.jotform.com/help/259-How-to-perform-calculation-in-the-form. You should do the calculation as:

    ticket widget calculates price and integrates with paypal how? Image 1 Screenshot 20

    Multiply the item by its own price, enclose it with brackets.

     

    Send the calculation widget to Payment field by following the instructions from this guide: https://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field.

     

    Example form: http://www.jotformpro.com/form/50522800708953

    Let us know if you need any further assistance.

    Thanks

  • livingearthschool
    Replied on February 22, 2015 at 12:18 PM

    OK, I found that too after looking around. I have so many events to sell though, but will try tighten up the padding with css to make it not so spread out. The inventory list seems really suited to just a few items visually as is.

  • Sean
    Replied on February 22, 2015 at 1:17 PM

    I am glad that my fellow colleague's proposed solution seem adequate enough for you to explore. Do get back to us with your outcome or if you ever feel the need for further assistance, please let us know.


    Cheers!

  • livingearthschool
    Replied on February 22, 2015 at 5:47 PM

    Do you have to create a new api key for each item for it to work? It seems when I don't that the counting is weird on subsequent items.

  • jonathan
    Replied on February 22, 2015 at 6:58 PM

    You can reuse the same API Key for each widget you will use on the form.

    You can just use the duplicate action to duplicate the widget several times on the form (so it will use the same API key)

    user guide: http://www.jotform.com/help/242-How-to-Manage-Multiple-Fields

    Let us know if you need further assistance.

    Thanks.

  • livingearthschool
    Replied on February 22, 2015 at 7:02 PM

    that's what I was doing and on the duplicates it is putting weird #s in as what is left, so something isn't right. I put in total inventory of an item as 36 and it shows 41.1

    Could it be because there was previously a ticket widget in the same form, even though I deleted it already?

  • livingearthschool
    Replied on February 22, 2015 at 7:46 PM

    Does each item need a unique item name? ( I was trying to put prices there and some are the same, and then I was using the label to differntiate)

  • Elton Support Team Lead
    Replied on February 23, 2015 at 2:57 AM

    @livingearthschool

    The inventory widgets in your form are working fine as of checking.

    ticket widget calculates price and integrates with paypal how? Image 1 Screenshot 20

    Once the form is submitted, the numbers left will be automatically deducted with the quantity you entered once you visit the form again.

    With regards to the item name, it doesn't have to be unique. You can use the same item name you want.

    If I have missed anything with your question, let us know here. Thanks!