add shipping fee dynamically

  • mariedeluca
    Asked on October 28, 2020 at 10:43 AM

    I do have another question - is there a way to connect a particular field, with a specific code entered into that field that will pull up a specific shipping fee. For example:

    On my form - I have a field called: Group code: When a code is entered into that field, it tells us the person filling out the product form belongs to one of our partners, like: Salvation Army. When that client completes the product form and orders a computer from us - that group code represents a specific shipping fee. Is there a way to automate this process. For now, I have created multiple shipping fees - which I will add group code info in the description and ask clients to pick the shipping fee that relates to their group code. Not really a good idea, as client will then see all the various shipping fee options. HELP.

    Thank you for your time and support. Have a great day.

    Marie

  • John Support Team Lead
    Replied on October 28, 2020 at 12:38 PM

    Hello Marie - Adding shipping fees to the total amount dynamically is possible. However, this will require you to re-work the form. This is because there is only two SHIPPING FEE options available when you only use the payment field:

    🔘 PER PRODUCT ITEM

    🔘 PER TRANSACTION (Flat Rate)

    As discussed on this guide: how-to-add-shipping-cost-to-payment-forms

    Now, since what you're trying to achieve is to assign shipping fees dynamically, you would have to create your products outside the payment field (I can see you are using Moneris). You can use native fields for these such as the Single Choice or Multiple Choice fields, then just assign calculation values to each options. Here's a guide on how-to-assign-calculation-value.

    1603902639 5f999cafac0e1  Screenshot 10

    Then use a dropdown field to create your GROUP list and assign calculation values to each option in the list as well. These values will be its corresponding shipping fee.

    1603902741 5f999d158e29f  Screenshot 21

    Next, add a FORM CALCULATION widget to sum up the total of the selected products plus the selected Group (shipping fee). Here's a guide on -how-to-perform-form-calculation-using-a-widget

    1603902799 5f999d4f57048  Screenshot 32

    Lastly, pass the calculated value to the Moneris payment field. Here's how: how-to-pass-a-calculation-to-a-payment-field.

    1603903045 5f999e456c6b6  Screenshot 43

    I created a demo form to better illustrate how it works. Here's the link so you can try: https://form.jotform.com/203015105528039

  • mariedeluca
    Replied on October 28, 2020 at 2:16 PM

    Hi

    I have tried the step by step instructions provided but I am now a bit lost. I need to have two aspects of my form, working at the same time. i need to create the form calculation - that will allow me to include multiple shipping options, based on a series of unique client identifiers while also include the production information section currently in my form. Can I accomplish this, with the instructions provided. I don't see to be able to complete the above step - that would give me a total shipping amount and a total product amount per order. Thank you! Marie

  • John Support Team Lead
    Replied on October 28, 2020 at 3:25 PM

    To clarify, do you want this to be available as well on the form?

    1603912920 5f99c4d883ae6  Screenshot 10

    Unfortunately, it is not doable using the same form. What I can suggest is to use two forms. The first form would be the form where the workaround I mentioned in my previous reply is implemented, while the other one is the form with the products added to the payment field.

    Then just add the two forms to a "MAIN" form where you can show and hide those forms based on conditions. Here's a complete guide for your reference: how-to-create-a-basic-multiple-payment-form.

    Please try that and let us know if you need further assistance.