Shipping options based on free pickup or fee per item

  • Profile Image
    armedwithjello
    Asked on April 04, 2019 at 09:35 PM

    I'm selling t-shirts for a charity. If people are picking up from me, shipping is free. If they want their shirts shipped, it's $5 per shirt. I currently have the form set up so people can choose a quantity of each colour/size combination. How do I create conditional shipping that also recognises the total quantity and calculates the shipping?

  • Profile Image
    BDAVID
    Answered on April 04, 2019 at 11:15 PM

    Setting up a shipping fee in the payment field is possible, please check this guide: https://www.jotform.com/help/304-How-to-Add-Shipping-Cost-to-Payment-Forms

    However, if you want to charge the shipping fee only if they want their shirts shipped, you will need to set up your products in separate native fields such as checkbox and dropdowns, and then:

    1) You will need to perform calculations to get the totals per products: https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget

    2) Calculate the shipping cost through conditions: https://www.jotform.com/help/268-How-to-Insert-Text-or-Calculation-into-a-Field-Using-Conditional-Logic

    3) Finally, pass the total to be paid to your payment gateway: https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field

  • Profile Image
    armedwithjello
    Answered on April 05, 2019 at 08:18 AM

    Thanks for the quick response!

    OK, I have everything except the final step sorted out. How can i send the calculated value including the conditional shipping amount to PayPal? I don't want to lose the product options, but I do need the newly calculated totals to transfer to PayPal.

  • Profile Image
    Richie_P
    Answered on April 05, 2019 at 11:10 AM

    I have checked your form and you have not switched your Payment type to user defined.

    Do note this will remove your product options. However, you may manually create a product option and assign values.

    Guide:https://www.jotform.com/help/301-How-to-Assign-Calculation-Value

    Then pass the calculation to your PayPal field.

    Guide:https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field

    However, checking from your product options, there is currently no field that has 2 dropdowns.

    You may enable shipping in your form and charge each t-shirt.

    Then add a coupon code that would give discount to shipping.

    Add a field that would ask if shipping or pick up and use conditions to show your coupon code when they choose pickup.

    Please give it at try and let us know if this fits your requirements.

  • Profile Image
    armedwithjello
    Answered on April 05, 2019 at 12:27 PM

    Thanks. I couldn't figure out a way to make it enter a free shipping code automagically when a free shipping option is chosen, so instead I made a text item that appears when one of those options is selected, telling the user to enter the coupon code "FREESHIP" at checkout for that option.

    If you know of a way to make it auto enter that code, that would be easier I think, otherwise this will do.

  • Profile Image
    Richie_P
    Answered on April 05, 2019 at 01:40 PM

    Unfortunately, there is no option to insert the coupon code automatically in the Payment Field.

    If you have further questions ,let us know.