How can I create tiered transportation options in Stripe checkout?

  • litterbox
    Asked on April 27, 2018 at 11:22 AM

    Hello,

    So I am running a storage company and creating a form that allows people to select the items they want to store. The price of the items have the basic transportation package built in. However, we also want to a have a premium transportation package that adds 25% to your total order. How can I make this happen?

    Currently, I am asking people which package they want, and use logic to direct them to two different pages. I have it set to apply a 25% tax on the total order by default (the premium package) and when people select basic, I send them to a page that says, please input the promo code basic to confirm your basic transportation package.


    However, there has a to be a more elegant and integrated solution to this. I look forward to hearing from you.

  • BJoanna
    Replied on April 27, 2018 at 12:29 PM

    There are two other ways, but they are a bit more complicated than a solution you are using.

    The first way is to set your products outside of the payment field, using basic form fields. You can then use the Form Calculation widget to calculate a total. Based on the selected option you can perform another calculation that that adds 25% if the premium package option is selected. Once you calculate the grand total you can pass it to the payment filed. 

    How to Perform Form Calculation Using a Widget

    How to Pass a Calculation to a Payment Field

    The second way is to create multiple payment form. You will basically have two Stripe payment forms, one with the basic prices and one with the premium prices. Inside of this guide, you can find how to create multiple payment form:

    How to Create a Basic Multiple Payment Form

    The example in this guide is for two different payment methods, but the same approach can be used for the same payment method with different prices.

    If you will be using Card Form layout, I would not suggest you to use the second option. 

  • litterbox
    Replied on April 27, 2018 at 12:31 PM

    Thank you so much! I was wondering how to enable the option to pass calculations to the payment field. This totally makes sense. I will give it a try and let you know. Thanks!

  • BJoanna
    Replied on April 27, 2018 at 12:35 PM

    Your welcome. Please give it a try and let us know if you need assistance. 

  • litterbox
    Replied on April 29, 2018 at 5:48 PM

    Okay so i have gotten that set up. The only issue I am running into now is that people can put in negative quantities, which we dont want, because that allows them to subtract money from their totals. How do we allow only values >=0, as I havent been able to find a solution in the logic.


    https://form.jotform.com/litterbox/storage-order-form

  • jonathan
    Replied on April 29, 2018 at 7:35 PM

     I see what you meant when I test the form

    1525044347zzz 2018 04 30 07 Screenshot 10


    but because it was an Input Table field, there is no option available to restrict the input to only accept positive values.

    1525044584zzz 2018 04 30 07 Screenshot 21


    The Input Table field does not have same option available to the Limit Entry option of the Number field.

    Example:

    1525044613zzz 2018 04 30 07 Screenshot 32

    ---

    Unfortunately I do not see an easier way to restrict the input value if using the Input Table field. It is possible though, but you will have to use unnecessary multiple calculation conditions.

    You may want to consider redesign of the form and use the Number field instead.

    I hope this help. Please let us know if you require further assistance.





  • jonathan
    Replied on April 29, 2018 at 7:42 PM

    I also test using the Multi-Line Question field, but the Number option also do not have the Limit Entry option that the regular Number field have.

    1525045290zzz 2018 04 30 07 Screenshot 10


    1525045329zzz 2018 04 30 07 Screenshot 21


  • jonathan
    Replied on April 29, 2018 at 7:53 PM

    I have also submitted a feature request related to this here https://www.jotform.com/answers/1458838

    You can follow that thread by adding your comment to it also.

    Thanks.


  • litterbox
    Replied on April 30, 2018 at 1:31 PM

    Okay thank you Jonathan. Because of the nature of it being a checkout form, we find it a necessity to have the selection occur all in one place rather than a bunch of different questions. You mentioned that there is a way (albeit complicated) to make the values positive. Would you be able to share as that seems to be our only option?

    Also, in terms of the feature request, do you have any general timeline on how long those sorts of things take. I'm guessing it won't be in the next few days or week, correct?

  • David JotForm Support Manager
    Replied on April 30, 2018 at 2:06 PM

    There is no way to make those values positive, that is the reason why my colleague has already requested to have the option to limit the entries in the "number field". You will be updated in that thread once it gets implemented.