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

  • Profile Image
    zoomadmin
    Asked on December 26, 2020 at 03:36 PM

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

  • Profile Image
    zoomadmin
    Answered on December 26, 2020 at 03: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

  • Profile Image
    Ahmed_S
    Answered on December 26, 2020 at 05: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.png

    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.

  • Profile Image
    zoomadmin
    Answered on December 26, 2020 at 06: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?


  • Profile Image
    Mike_G
    Answered on December 26, 2020 at 06:47 PM

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

    1609025089_5fe7c6414f3d2_zt201226_182149

    Shipping (based on minimum order amount),

    1609025100_5fe7c64c32a87_zt201226_182211

    and Subtotal (based also on minimum order amount).

    1609025110_5fe7c656c1d6a_zt201226_182222

    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.

  • Profile Image
    zoomadmin
    Answered on December 27, 2020 at 04: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.


  • Profile Image
    VincentJay
    Answered on December 27, 2020 at 05: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!

  • Profile Image
    zoomadmin
    Answered on December 27, 2020 at 05: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)

  • Profile Image
    zoomadmin
    Answered on December 27, 2020 at 06: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

  • Profile Image
    zoomadmin
    Answered on December 27, 2020 at 06: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

  • Profile Image
    Gaetan_B
    Answered on December 27, 2020 at 06: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_


    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

  • Profile Image
    zoomadmin
    Answered on December 27, 2020 at 06: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.)

  • Profile Image
    zoomadmin
    Answered on December 27, 2020 at 06: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?

  • Profile Image
    Mike_G
    Answered on December 27, 2020 at 08: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.

  • Profile Image
    zoomadmin
    Answered 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.)



  • Profile Image
    Mike_G
    Answered 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

    • 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

    • 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

    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

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

    1609087239_5fe8b907ca265_zt201227_113900

    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

    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

    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

    1609089566_5fe8c21e07643_zt201227_121510

    1609089619_5fe8c25365de7_zt201227_121713

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

    1609089665_5fe8c281bebae_zt201227_121804

    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

    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.

  • Profile Image
    zoomadmin
    Answered on December 27, 2020 at 05: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

  • Profile Image
    zoomadmin
    Answered on December 27, 2020 at 06: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

  • Profile Image
    zoomadmin
    Answered on December 27, 2020 at 06: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

  • Profile Image
    Jessica_H
    Answered on December 27, 2020 at 08:43 PM

    Hi zoomadmin, thank you for reaching us.

    To confirm, are you referring to the following fields?

    1609119671_5fe937b7a4add_

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