Applying coupon discount outside the payment field

  • Valerie Whitney
    Asked on December 9, 2020 at 4:41 AM

    I have a product form with 153 plant listings. I am using PayPal for payment. I want to enable two different discounts which are 10% off total products selected or 15% off total products selected. I read online how to use conditions to set this up. Because of using PayPal I understand I can’t simply use the coupon button set up process. My calculations for discount show as accurate in the calculation and my products boxes when the code value I created is entered into the short text box I created, however when I click outside of the short text box into which I have entered my numeric coupon value (1941), the amounts under the calculation and my products boxes change again to an incorrect amount. Please advise.

  • Mike_G JotForm Support
    Replied on December 9, 2020 at 5:58 AM

    I have checked and found an account linked to the email address you have contacted us from (vkwhitney51).

    The account only has one form (2021 Spring Herb Sale), which I assume the form you are referring to. The form is currently set as disabled. But, I was able to check the Form Calculation widget in that form and it appears that the "Enter Discount" field is not included in the calculation.

    1607511363 5fd0ad436e5f4 zt201209 055458 Screenshot 10

    May we ask that you confirm the form and set up the calculation you are referring to again, please? We would like to check the issue you are having on our end by testing your form.

    We will wait for your response.

  • vkwhitney51
    Replied on December 9, 2020 at 11:00 AM
    I have decided to manually change the prices. After researching online it
    appeared a customer would have had to apply the discount code to each
    product they selected which would be arduous. I have approximately 153
    plant products and customers may be selecting 20 or 30 different ones. The
    ...
  • Basil JotForm Support
    Replied on December 9, 2020 at 1:36 PM

    Hi,

    I have looked at your form and there is an issue with the calculation field. selecting "Beebalm-Eastern" gives 6.25 when it should give 7.25.

    Could you complete your last question, it seems that you have not sent it fully?

    To apply a discount you can just add a condition as below:

    1607538962 5fd1191248824 chrome js14OBsp Screenshot 10

    Please let us know if you require any further assistance.

  • vkwhitney51
    Replied on December 9, 2020 at 2:22 PM
    Disregard the prices I have entered under settings. Since I could not make
    the discount work, I simply changed the price of each plant within
    calculations so that it was equal to a 15% discount and was requiring the
    purchasers to input a discount code (1941). Then I read your most recent
    reply to me. I followed but entered Calculation 0-9 * .15 to get a 15
    percent discount on the total price of selected products. I enabled the
    form, gave it a try and the final pricing has not changed. I'm stuck.
    Your way, if I can get it to work, would be a faster way, than me having to
    change all of the prices under calculation when I offer a 10% discount
    code, and then change prices again when the plants are sold at full price.
    I am leaving the form enabled right now if that helps you. Thanks.
    ...
  • Mike_G JotForm Support
    Replied on December 9, 2020 at 6:09 PM

    If I'm understanding your concern correctly, here's what you need to do to meet your requirements.

    Step 1 — Add another field, a number field.

    1607552925 5fd14f9dafd08 zt201209 172611 Screenshot 10

    Step 2 — Set the default value of the field to 1.

    1607552946 5fd14fb2f20a8 zt201209 172804 Screenshot 21

    Step 3 — Hide the field so your respondents will not see it.

    1607552979 5fd14fd315b01 zt201209 172824 Screenshot 32Step 4 — Update the only condition in your form

    1607553278 5fd150fecf6c9 zt201209 173349 Screenshot 43

    from this:

    1607553325 5fd1512d6a977 zt201209 173446 Screenshot 54

    to this:

    1607553446 5fd151a6d7548 zt201209 173638 Screenshot 65

    Result of Steps 1 to 4:

    1607553678 5fd1528e1ecb0 zt201209 174056 Screenshot 76

    Note: The Number field is just shown on the form for testing purposes.

    Step 5 — Lastly, update the calculation to include the Number field.

    Put the existing equation in the Form Calculation widget on your form in parenthesis. To do that, add an open parenthesis at the beginning of the equation.

    1607554029 5fd153ed3b16b zt201209 174328 Screenshot 87

    Then, add a close parenthesis at the end.

    1607554166 5fd15476925b4 zt201209 174500 Screenshot 98

    Next, multiply the equation by the value of the Number field. To do that, add an asterisk symbol (multiplication) followed by the Number field outside the parenthesis that was just added above.

    1607554479 5fd155af4b5c1 zt201209 175323 Screenshot 109

    Here's a cloned version of your form where I have applied the changes.

    https://form.jotform.com/203436503445955

    Feel free to create a cloned version of that form in your account.

    Reference Guide: How-to-Clone-an-Existing-Form-from-a-URL

    You also have the option to just use that version if you want. And, if you have any further questions, please do not hesitate to contact us again anytime and we will be glad to help you.