Multiple Certificate option?

  • visitationpto
    Asked on June 27, 2016 at 11:46 AM

    I have set-up a form selling gift certificates here but want people to be able to buy multiple gift certificates.  However when they purchase now they only get one certificate number.  How can I make it so that they get one e-mailed certificate per the quantity they choose?

  • Charlie
    Replied on June 27, 2016 at 1:26 PM

    I cloned your form and I see that you are using the Unique ID widget as the certificate number generator.

    Multiple Certificate option? Image 1 Screenshot 70

     

    Unfortunately, the unique ID widget can only generate one unique ID per submission, meaning even if your users have more than 1 quantity in their total purchase, the submission is still considered only one. If they want to have multiple certificate numbers, then they will need to submit the form multiple times.

     

    However, I believe this is somehow possible. Here's what I have in mind:

    1. Your Certificate Number is generated like this:

    CERT#90002

    Now if the quantity if greater than 1, then the formatting or increment would be at the end like this:

    CERT#90002-Q2

    CERT#90002-Q3

    CERT#90002-Q4

    and so on...

     

    2. Now this cannot be done in the widget, so we will hard code it in our emails. I presume you want ONE email per certificate number? Now in my end, I create autoresponder emails specific on the quantity of the products.

    Multiple Certificate option? Image 2 Screenshot 81

     

    3. Now on each autoresponder email, I will append the sub increment on the unique ID widget, this is how it looks like:

    For product quantity "2", the certificate number will be like this {certificateNumber}-Q2

    Multiple Certificate option? Image 3 Screenshot 92

    For product quantity "3", the certificate number will be like this {certificateNumber}-Q3

    Multiple Certificate option? Image 4 Screenshot 103

     

    Now you can repeat this to other autoresponder emails that you will be creating, I presume you'll need to have 10 autoresponder emails because the max quantity for your product is 10.

     

    4. Now we do not want to send those autoresponder emails by default, we will only send them depending on the quantity selected. We will use conditional logic for it. Here's a guide that you can refer to: https://www.jotform.com/help/167-How-to-Send-Email-Based-on-Selection 

    In the "IF" statement of the conditional logic, it will allow you to use the quantity of the selected product as part of the rule:

    Multiple Certificate option? Image 5 Screenshot 114

    Now my conditional logic for quantity 2 is like this:

    IF Quantity of 

    Waldo Pizza $0.35 Test Certifificate $0.35 OR

    Waldo Pizza $25 Gift Certificate $25.00 OR

    Waldo Pizza $50 Gift Certificate $50.00

    IS EQUAL to "2"

    THEN

    Send autoresponder email "Email Gift Certificate Quantity 2"

    Multiple Certificate option? Image 6 Screenshot 125

     

    How about for quantity 3?

    IF Quantity of 

    Waldo Pizza $0.35 Test Certifificate $0.35 OR

    Waldo Pizza $25 Gift Certificate $25.00 OR

    Waldo Pizza $50 Gift Certificate $50.00

    IS EQUAL to "3"

    THEN

    Send autoresponder email "Email Gift Certificate Quantity 2"

    Send autoresponder email "Email Gift Certificate Quantity 3"

     

    Noticed that in quantity 3, we need to send the autoresponder email for quantity 2, why? Because it won't be triggered. Remember that we are using "IS EQUAL TO" and NOT is less than or greater than. This means the following quantity conditional logic will looks like this:

    For quantity 4:

    IF Quantity of 

    Waldo Pizza $0.35 Test Certifificate $0.35 OR

    Waldo Pizza $25 Gift Certificate $25.00 OR

    Waldo Pizza $50 Gift Certificate $50.00

    IS EQUAL to "4"

    THEN

    Send autoresponder email "Email Gift Certificate Quantity 2"

    Send autoresponder email "Email Gift Certificate Quantity 3"

    Send autoresponder email "Email Gift Certificate Quantity 4"

     

    For quantity 5:

    IF Quantity of 

    Waldo Pizza $0.35 Test Certifificate $0.35 OR

    Waldo Pizza $25 Gift Certificate $25.00 OR

    Waldo Pizza $50 Gift Certificate $50.00

    IS EQUAL to "5"

    THEN

    Send autoresponder email "Email Gift Certificate Quantity 2"

    Send autoresponder email "Email Gift Certificate Quantity 3"

    Send autoresponder email "Email Gift Certificate Quantity 4"

    Send autoresponder email "Email Gift Certificate Quantity 5"

     

    And so on...

     

     

    Now your users will receive separate autoresponder emails with different certificate numbers based on the quantity of the selected product.

    Let us know if you need more help on this.

     

    Just a tip: Please do check this guide on how to use the Unique ID widget: https://www.jotform.com/help/79-How-to-Add-Custom-Unique-IDs-to-your-Form-Submissions