I want to add a discount voucher code to my form.

  • zoomadmin
    Asked on December 26, 2020 at 3:36 PM

    I was hoping to establish a custom voucher code field that would further discount the total

  • zoomadmin
    Replied on December 26, 2020 at 3:56 PM

    I have two Directors with initial SS and MW

    I want each of them to be able to share or selectively give out 4 different levels of discounts

    100%

    50%

    25%

    10%

    Each of their discount codes will be unique:

    SS100
    SS50
    SS25
    SS10


    MW100
    MW50
    MW25
    MW10

  • Ahmed_S
    Replied on December 26, 2020 at 5:07 PM

    According to the structure of your form and the way that you calculate the payment amount, you can utilize the UPDATE / CALCULATE FIELD Conditions to apply a discount rate according to the code entered in a field, then you will include this rate in the calculation of the total amount, let's apply this in steps:

    1- Add a Short text box that your customer can enter the discount code in.

    2- Add a number field that will have the discount rate, its default value is zero and the rate will be set by conditions, this field can be hidden.

    3- For each discount rate you will create a condition, in our case we will have 4 conditions for10, 25, 50 & %100, for each condition will add IF statement for each code value of a certain rate, for example in %50 condition will have 2 IF for SS50 and MW50 codes, then will set ANY in matched rules option.

    1609019078 5fe7aec636b75 1 Screenshot 10

    5- Modify your total amount calculation to include the "discount rate" field's value, by default it will be zero so it should not affect your amount if no code or wrong code was entered.

    You can check this demo form I've made and clone it for your help.

    https://form.jotform.com/203606720211037

    Please check this guide for how to clone a form: https://www.jotform.com/help/27-how-to-clone-an-existing-form-from-your-account

    I also recommend to check the below guides so you can enhance your form by using Products List, so you can manage & group your courses by categories and apply coupons & other option directly in the payment without the need to use calculations.

    How to use products categories: https://www.jotform.com/help/733-how-to-add-product-categories-to-payment-fields

    How to add discount coupons: https://www.jotform.com/help/233-how-to-add-coupon-code-to-payment-forms

    Let us know if you have any further questions, we will be glad to help you any time.

  • zoomadmin
    Replied on December 26, 2020 at 6:01 PM

    If i was to rebuild this form from scratch using product categories is it possible for an automatic discount of 10% if a user selects 2 or more courses.?

    Over a week ago i started this form using products in the payment area - but ran into a brick wall - trying to remember what it was?


  • Mike_G JotForm Support
    Replied on December 26, 2020 at 6:47 PM

    The coupon discount can only be applied to (selected) Products,

    1609025089 5fe7c6414f3d2 zt201226 182149 Screenshot 10

    Shipping (based on minimum order amount),

    1609025100 5fe7c64c32a87 zt201226 182211 Screenshot 21

    and Subtotal (based also on minimum order amount).

    1609025110 5fe7c656c1d6a zt201226 182222 Screenshot 32

    Perhaps, you can set the Minimum Order Amount to the total price of two courses. That is if there is no single course that has a price equivalent or more than the price of two courses.

  • zoomadmin
    Replied on December 27, 2020 at 4:32 AM

    Yes - that was the brick wall show stopper we hit unfortunately with product list. There was no way for the PRODUCT plugin to count the number of courses that were being booked in one order (as we were using the only field for the cost of the particular course). There are 28 Courses with 7 varying prices from 25 euro to 130 euro. So there was no way of telling from the combined order value if the user had booked 2 courses. So looks like I have to stick with the route i have taken. Can you suggest any improvements or refinements please? Meanwhile I will see if i can get the CUSTOM DISCOUNT CODE feature to work.


  • VincentJay
    Replied on December 27, 2020 at 5:36 AM

    Hello,

    I think the best way to do this is what you're doing right now to your form. You can use the Form Calculation widget and Number fields with calculation values. After that, pass the form Calculation widget total to the payment field.

    You can also check this demo form in which I used the Special Pricing option as a workaround only: https://form.jotform.com/203612798695065

    For more information about the Special Pricing feature, please visit this page: https://www.jotform.com/help/265-what-is-special-pricing. Please check it and let us know if you have any questions. Thank you!

  • zoomadmin
    Replied on December 27, 2020 at 5:57 AM

    Sorry Struggling to implement this GLOBAL 100% Discount by voucher code SS100

    What field is the SUMMARY field supposed to be? (in my form)

  • zoomadmin
    Replied on December 27, 2020 at 6:03 AM

    Thank you Vincent Jay but possibly you have not realised:

    1) The 10% discount needs to be AUTO APPLIED in the background.

    2) The 10% Auto applied discount needs to be triggered by THE VOLUME of courses BOOKED.

    It is NOT possible to determine if a discount is applicable by the total value as courses cost vary from 25 euro to 130 euro


    Apologies if I have NOT correctly understood your suggestion

  • zoomadmin
    Replied on December 27, 2020 at 6:08 AM

    If i can get help on the IMPLEMENTATION of the 100% Custom Discount Voucher code SS100 delivering 100% discount and zero value to card

  • Gaetan_B
    Replied on December 27, 2020 at 6:53 AM

    Hello,

    I apologize if I did not correctly understand the issues.

    Regarding the 10% discount, it looks like you've made it work using the condition below (I have it automatically added when I select 2 courses or more when I tested it).

    1609068902 5fe8716695f08  Screenshot 10


    For the global discount, I apologize, but I am not sure where your struggle is as you can use the same logic so make the cart value go to 0.

    Could you please give us an example so we can pinpoint where the issue is?


    Thank you

  • zoomadmin
    Replied on December 27, 2020 at 6:54 AM

    The Final Total working value on this form is the field

    "Final Amount to Be Charged to your Card Today"

    How do i link in the OVERRIDING Custom Voucher code discount please?

    I have added in the two field as per Ahemed's instructions but have not yet linked them into the form so that they relate to my form fields

    (when I get the form fully functioning i have many fields to HIDE - i'm ware of that - but to help with diagnosis of calculations I have made all fields visible.)

  • zoomadmin
    Replied on December 27, 2020 at 6:58 AM

    CAn we keep this chain to SOLVING the VOUCHER CODE - implementation please- maybe move the older factor of matter of the form applying discount based on number of courses to a NEW chain / conversation please.
    I will come back to it - but FIRST I just need to resolve the implementation of application of the 4 Variants of custom voucher codes please?

  • Mike_G JotForm Support
    Replied on December 27, 2020 at 8:23 AM

    We will be glad to further help you with all of your concerns about the for you are trying to create. But please allow me some time to review what has already been discussed on this ticket about your concern and I'll get back to you with my findings and/or a solution that will work with your requirements.

  • zoomadmin
    Replied on December 27, 2020 at 12:25 PM

    The Final Total working value on this form is the field

    "Final Amount to Be Charged to your Card Today"

    How do i link in the OVERRIDING Custom Voucher code discount please?

    I have added in the two field as per Ahemed's instructions but have not yet linked them into the form so that they relate to my form fields

    (when I get the form fully functioning i have many fields to HIDE - i'm ware of that - but to help with diagnosis of calculations I have made all fields visible.)



  • Mike_G JotForm Support
    Replied on December 27, 2020 at 12:37 PM

    Apologies for any delays. I have created a cloned version of your form where I have applied some changes based on my understanding of your concern. I would suggest that you create a cloned version of that form in your account so you may use it as a reference while checking the information below.

    https://form.jotform.com/203613533229955

    There are just a few things that I would like to point out first:

    • I have removed a duplicate field in the cloned version.

    1609086196 5fe8b4f4cc0ec zt201227 112123 Screenshot 10

    • I have fixed the error in the conditions associated with that field to avoid confusion. (Just have to open the condition and resave it.)

    1609086301 5fe8b55da76a9 zt201227 112419 Screenshot 21

    • I have divided the form into 4 sections to avoid confusion between the existing fields in your form and the fields that I have added.

    1609086019 5fe8b44313655 zt201227 111941 Screenshot 32

    1. Section for the initial fields and the courses you have in your form
    2. Section for the fields I have added.
    3. Section for the existing fields or the fields you have added.
    4. Section for the Payment field and the other fields that come after it.

    And here are the only fields under Section #2:

    Note: The fields under this section are only visible on the form for testing purposes.

    1609086777 5fe8b739634e3 zt201227 112819 Screenshot 43

    The basic fields (not the widgets)under that section are only linked to these 4 new conditions.

    1609087239 5fe8b907ca265 zt201227 113900 Screenshot 54

    Condition #1 will pass the value of the Custom Coupon Code field to the Applied Code field if the Custom Coupon Code field is "filled" AND its value "contains" exactly any of the correct coupon codes you have provided. (Note: The valid coupon codes are case sensitive. Please let us know if you prefer otherwise.)

    Condition #2 will show the Custom Coupon Code field if the value of the Please ignore this field if you do not have a voucher code field is equal to the first option — "YES i have a code"

    Condition #3 will insert a 0.90 value (90% of the amount or 10% discount) into the 10% Discount (Selected Course(s)>2 ) field if the Applied Code field is equal to "None" AND the Number of Courses Selected field is "greater than 1".

    Condition #4 will insert the value of 1 into the Course #1 count as field if the first option in the first course on your list is selected.

    As for the Form Calculation widgets, the Number of Courses Selected will automatically count the number of courses that a respondent has selected.

    1609088986 5fe8bfda4d1db zt201227 120811 Screenshot 65

    and the [Mike_G] Final Amount to Be Charged to your Card Today, will add the calculation values of all the Courses fields (1 to 28) and it will multiply the total by value in the 10% Discount (Selected Course(s)>2 ) field, the calculation value of the selected option on the Applied Code field, and the selected option on the The Number of persons / places I would like to Register and pay for today: field, the first field on the form.

    1609089177 5fe8c099c8a46 zt201227 120915 Screenshot 76

    Now, aside from the sections, fields, conditions, and calculations, I would also like for you to check the Default Value I have set for the following fields

    1609089585 5fe8c2311e4c9 zt201227 121538 Screenshot 87

    1609089566 5fe8c21e07643 zt201227 121510 Screenshot 98

    1609089619 5fe8c25365de7 zt201227 121713 Screenshot 109

    and the calculation value I have set for the Applied Code field.

    1609089665 5fe8c281bebae zt201227 121804 Screenshot 1110

    Lastly, I have selected the [Mike_G] Final Amount to Be Charged to your Card Today (Form Calculation widget) to be the source of the Get Price From option of the Stripe payment field on the form.

    1609090279 5fe8c4e7eee80 zt201227 122633 Screenshot 1211

    Should you decide to apply the changes above to the existing form in your account, you may find these guides helpful.

    How-to-Insert-Text-or-Mathematical-Calculation-into-a-field-using-a-Condition

    How-to-Perform-Form-Calculation-Using-a-Widget

    How-to-pass-a-calculation-to-a-payment-field

    How-to-Assign-Calculation-Value

    I just would like to add that on the cloned version of your form I have updated, if a respondent entered a valid code and at the same time selected more than 2 courses, the 10% discount for selecting more than 2 courses will be overridden by the discount the valid coupon code gives.

    I hope this helps. Feel free to let us know if you need any further assistance.

  • zoomadmin
    Replied on December 27, 2020 at 5:18 PM

    Thank you Mike,

    Looks like you have covered every last detail - much appreciated - Thank you.

    I have switched to using YOUR version and renaming it accordingly.

    Can the form on this thread be changed please to

    https://eu.jotform.com/build/203616430414344


    Thank you

  • zoomadmin
    Replied on December 27, 2020 at 6:09 PM

    This is most excellent Mike G

    You have nailed it completely in terms of understanding what we are trying to achieve!

    10/10


    Ian

  • zoomadmin
    Replied on December 27, 2020 at 6:19 PM

    Just seeing the dupication issue.

    My problem was having the wrong content in course 26. There are 28 courses so i need to reinstate the correct content in course no 26 but with the correct content.

    Hopefully i will get the associated conditions fixed correctly as well.

    Cheers

  • Jessica JotForm Support
    Replied on December 27, 2020 at 8:43 PM

    Hi zoomadmin, thank you for reaching us.

    To confirm, are you referring to the following fields?

    1609119671 5fe937b7a4add  Screenshot 10

    Please kindly elaborate further the issue (wrong content, reinstate the correct content) you are facing.