How to Add a Discount to Your Quiz¶
A discount rewards the customer for finishing the quiz. This version can:
- Apply a Shopify discount code automatically at checkout.
- Show the code as text on a question or the results page, for the customer to copy.
- Apply the code with custom JavaScript.
- Put the code in the result email.
A discount set on the product itself needs no code
A product discounted in Shopify shows its reduced price on the results page by itself. A discount code works differently: it is redeemed at checkout, so the customer sees the reduction only at that stage.
A discount coupon rewards the customer for finishing the quiz, with an offer on the Results Page or in a follow-up email.

There are four ways to get the code to the customer:
- Apply the code automatically at checkout.
- Show the code as text, for the customer to copy.
- Apply the code with custom JavaScript.
- Put the code in a follow-up email.
A discount coupon rewards the customer for finishing the quiz, with an offer on the Results Page or in a follow-up email.

There are four ways to get the code to the customer:
- Apply the code automatically at checkout.
- Show the code as text, for the customer to copy.
- Apply the code with custom JavaScript.
- Put the code in a follow-up email.
A discount coupon rewards the customer for finishing the quiz, with an offer on the Results Page or in a follow-up email.

This version has no discount field in the quiz, so there are three ways to get the code to the customer:
- Show the code as text, for the customer to copy.
- Apply the code with custom JavaScript.
- Put the code in a follow-up email.
A discount coupon rewards the customer for finishing the quiz, with an offer on the Results Page or in a follow-up email.

This version has no discount field in the quiz, so there are three ways to get the code to the customer:
- Show the code as text, for the customer to copy.
- Apply the code with custom JavaScript.
- Put the code in a follow-up email.
A discount coupon rewards the customer for finishing the quiz, with an offer on the Results Page or in a follow-up email.

This version has no discount field in the quiz, so there are three ways to get the code to the customer:
- Show the code as text, for the customer to copy.
- Apply the code with custom JavaScript.
- Put the code in a follow-up email.
Set up a discount on the results page¶
The results page can reach the checkout in three ways, and they combine. A code applied automatically stays invisible until checkout, so showing it as text as well tells the customer what they are getting.
Apply the code automatically at checkout¶
The code stays invisible until checkout
It appears neither in the quiz preview nor on the results page. Shopify applies it when the customer reaches checkout. To tell the customer about it, show it as text as well.
-
Open
Discountsin your Shopify admin and clickCreate discount. -
Choose the kind of discount, such as a percentage or a fixed amount.
-
Name the code, for example
quiz123, and set the amount. -
Choose which products it applies to, then save it and copy the code.
-
Open your quiz in the app by clicking
Customize. -
Click the results page name to open its settings.

-
Scroll to
Discount codeand paste the code in.
-
Click the top-right
Savebutton. -
Take the live quiz through to checkout, and check the code is applied.
The preview cannot show this, because the code is applied by Shopify checkout.
Before you start
Create the discount code in your Shopify admin, following the Shopify guide to discount codes. Choose the manual type, because the app reads no other kind, and activate the code before you connect it to the quiz.
The discount lives in Shopify
You create, change and end the discount in Shopify. The app only points at it.
A static discount, the same code for everyone
-
Type your code into the
Codefield. It is redeemed at checkout.
-
Pick a percentage under
Visible discount. That figure shows on the results page products. -
Click the top-right
Publishbutton. -
Take the live quiz through to checkout, and check the code is applied. The preview cannot show this, because Shopify redeems the code at checkout.
A dynamic discount, a different code per cart value
-
Create one Shopify discount code per tier, as Before you start describes.
-
Go to Results Page Settings > Discounts and click
activate.
-
Fill in the first discount.
Discount code- The code, as created in your Shopify discounts.Discount percentage- Shows on the results page products, and is redeemed at checkout.Min. value in cart- The cart total above which this discount applies. -
Click
+ / add another discountfor each further tier. -
Decide what the customer is told.
Enable notifications- Shows a notification when the customer qualifies for a discount.Encourage discounts- Adds how close they are to the next discount up. -
Click the top-right
Publishbutton.The bin icon deletes one tier, and
deactivateturns dynamic discounts off again. -
Take the live quiz, and add products until the cart passes your first threshold. The notification should name that tier, and its code should be redeemed at checkout.
This route needs the Advanced Coupons plugin
Advanced Coupons for WooCommerce turns a coupon into a URL, and the quiz sends the customer to that URL instead of to the plain cart.
-
Create a coupon code in Advanced Coupons.
-
Open its
URL Couponssection and pointRedirect To URLat your cart page. -
Copy the URI, which is the part of the coupon URL after your domain.

From
https://yourdomain.com/coupon/codexyz/, copy/coupon/codexyz/. -
Go to Results Page Settings > Checkout Settings and paste it into
Cart URL.
-
Click the top-right
Publishbutton. -
Take the live quiz through to the cart. The customer lands on the coupon URL instead of the plain cart, and the coupon is applied for them.
Not part of this version
The quiz has no discount field here, so it cannot redeem a code for the customer.
Instead, show the code as text and let the customer paste it at checkout, or have a developer apply it with custom JavaScript.
Not part of this version
The quiz has no discount field here, so it cannot redeem a code for the customer.
Instead, show the code as text and let the customer paste it at checkout, or have a developer apply it with custom JavaScript.
Not part of this version
The quiz has no discount field here, so it cannot redeem a code for the customer.
Instead, show the code as text and let the customer paste it at checkout, or have a developer apply it with custom JavaScript.
Show the code as text¶
Put the code in a Text block and the customer copies it at checkout.
-
Open the Results page.
-
Click
Add blockand selectText. -
Type the discount code into the text field.
-
Click the top-right
Savebutton.

A question works the same way, if you would rather promise the discount before the customer finishes.
Put the code in a Content block on the Results Page and the customer copies it at checkout.
-
Open the Results Page tab in the Quiz Builder.
-
Click
+ Add blockand selectContent. -
Type the discount code into the text field.
-
Click the top-right
Publishbutton.
A question works the same way, if you would rather promise the discount before the customer finishes.
Put the code in a Content block on the Results Page and the customer copies it at checkout.
-
Open the Results Page tab in the Quiz Builder.
-
Click
+ Add blockand selectContent. -
Type the discount code into the text field.
-
Click the top-right
Publishbutton.
A question works the same way, if you would rather promise the discount before the customer finishes.
Put the code in a Content block on the Results Page and the customer copies it at checkout.
-
Open the Results Page tab in the Quiz Builder.
-
Click
+ Add blockand selectContent. -
Type the discount code into the text field.
-
Click the top-right
Publishbutton.
A question works the same way, if you would rather promise the discount before the customer finishes.
Put the code in a Content block on the Results Page and the customer copies it at checkout.
-
Open the Results Page tab in the Quiz Builder.
-
Click
+ Add blockand selectContent. -
Type the discount code into the text field.
-
Click the top-right
Publishbutton.
A question works the same way, if you would rather promise the discount before the customer finishes.
Put the code in a Content block on the Results Page and the customer copies it at checkout.
-
Open the Results Page tab in the Quiz Builder.
-
Click
+ Add blockand selectContent. -
Type the discount code into the text field.
-
Click the top-right
Publishbutton.
A question works the same way, if you would rather promise the discount before the customer finishes.
Apply the code with custom JavaScript¶
-
Open the Results page and open its settings.
-
Scroll to
Custom JavaScript. -
Ask your developer to call
await Quiz.applyDiscountCode()there.Quiz Copilot can write it for you
Click
✨Get help with custom JavaScriptto open the Quiz Copilot chat. -
Click the top-right
Savebutton.
See how to add JavaScript to the quiz for what custom JavaScript can reach.
Your developer can set the code from the Results Page.
That applies the code to every recommended product. The code has to exist in your store first.
See how to add JavaScript to the quiz for where this code goes.
Your developer can set the code from the Results Page.
That applies the code to every recommended product. The code has to exist in your store first.
See how to add JavaScript to the quiz for where this code goes.
Your developer can set the code from the Results Page.
That applies the code to every recommended product. The code has to exist in your store first.
See how to add JavaScript to the quiz for where this code goes.
Your developer can set the code from the Results Page.
That applies the code to every recommended product. The code has to exist in your store first.
See how to add JavaScript to the quiz for where this code goes.
Your developer can set the code from the Results Page.
That applies the code to every recommended product. The code has to exist in your store first.
See how to add JavaScript to the quiz for where this code goes.
Include the code in a follow-up email¶
The result email can carry the discount code, for the customer to copy and paste at checkout.
-
Open Quiz settings.
-
Go to the Emails to respondents tab.
-
Write the discount code into the message.
Setting the email up in the first place
See Setting Up Result Emails with Product Recommendation Quiz.
The follow-up email can carry the discount code, for the customer to copy and paste at checkout.
-
Open the Quiz Builder.
-
Go to the Notifications > TO RESPONDENT tab.
-
Write the discount code into the message.
Setting the email up in the first place
See Setting Up Result Emails with Product Recommendation Quiz.
The follow-up email can carry the discount code, for the customer to copy and paste at checkout.
-
Open the Quiz Builder.
-
Go to the Notifications > TO RESPONDENT tab.
-
Write the discount code into the message.
Setting the email up in the first place
See Setting Up Result Emails with Product Recommendation Quiz.
The follow-up email can carry the discount code, for the customer to copy and paste at checkout.
-
Open the Quiz Builder.
-
Go to the Notifications > TO RESPONDENT tab.
-
Write the discount code into the message.
Setting the email up in the first place
See Setting Up Result Emails with Product Recommendation Quiz.
The follow-up email can carry the discount code, for the customer to copy and paste at checkout.
-
Open the Quiz Builder.
-
Go to the Notifications > TO RESPONDENT tab.
-
Write the discount code into the message.
Setting the email up in the first place
See Setting Up Result Emails with Product Recommendation Quiz.
The follow-up email can carry the discount code, for the customer to copy and paste at checkout.
-
Open the Quiz Builder.
-
Go to the Notifications > TO RESPONDENT tab.
-
Write the discount code into the message.
Setting the email up in the first place
See Setting Up Result Emails with Product Recommendation Quiz.
Give the discount only to customers who leave an email¶
Send the customer to one of two results pages, depending on whether they answer the email question. The first page carries no discount, and the second carries the code.
-
Go to
Results Page Settings -> Multiple Results Pagesand clickActivate. A second results page is added.
-
Open Results page 2 settings, go to
Discount codeand paste your Shopify code in. Leave Results page 1 without one. See Apply the code automatically at checkout. -
In the Quiz builder, add a
YesorNoquestion asking whether the customer wants a discount.Sample question
Question: Would you like a discount?
- Choice 1: Yes
- Choice 2: No
-
Add an email question after it.

-
Open
Conditional logicon the discount question and add two jump rules.Two rules on the discount question
- IF the answer to
Would you like a discount?ISYesTHEN jump to the email question. - Click
+ Add another rule (OR), then IF the answer ISNoTHEN jump toResults page 1.
Leave
Default destinationon the email question, so an unanswered question still moves the customer forward. - IF the answer to
-
Set the email question to jump to Results page 2.
One rule on the email question
Set
Default destinationtoResults page 2. No condition is needed, because everyone who reaches this question goes to the same place. -
Click
Save, then test the whole flow withPreview.
A simpler alternative
The discount does not always have to be withheld completely. Put the code in a Text block on one results page, then show that block with Display logic, based on how the customer answered.
Send the customer to one of two Results Pages, depending on whether they answer the email question. The first page carries no discount, and the second carries the code.
-
Go to
Results Page Settings -> Advanced -> Multiple Results Pagesand clickActivate. A second Results Page is added.
-
Click
editto rename and edit the new page.
-
Open
Results Page 2 Settings -> Discount code settings -> Discount code, clickadd, and enter the code and theVisible % discount. Leave Results Page 1 without one.Create the code in Shopify first
-
Go to the Quiz Builder and click
+to add a discount question. Ask whether the customer wants a discount, with aYesand aNochoice.
-
Click
+again to add an email question after it.
-
Click
conditional logicon the discount question, openJump Logicand clickAdd Jump Logic.
- A customer who answers
Yesgoes on to the email question. - A customer who answers
Nogoes to Results Page 1, the one without the discount.
- A customer who answers
-
On the email question, set
Always Jump to...to Results Page 2. Everyone who leaves an address lands on the page with the code.
-
Click the top-right
Publishbutton, then test the whole flow withPreview.
More on jump logic
Send the customer to one of two Results Pages, depending on whether they answer the email question. The first page carries no discount, and the second carries the code.
-
Go to
Results Page Settings -> Advanced -> Multiple Results Pagesand clickActivate. A second Results Page is added.
-
Click
editto rename and edit the new page.
-
Set the coupon
Cart URLon Results Page 2 only, as Apply the code automatically at checkout describes. Leave Results Page 1 pointing at your plain cart. -
Go to the Quiz Builder and click
+to add a discount question. Ask whether the customer wants a discount, with aYesand aNochoice.
-
Click
+again to add an email question after it.
-
Click
conditional logicon the discount question, openJump Logicand clickAdd Jump Logic.
- A customer who answers
Yesgoes on to the email question. - A customer who answers
Nogoes to Results Page 1, the one without the discount.
- A customer who answers
-
On the email question, set
Always Jump to...to Results Page 2. Everyone who leaves an address lands on the page with the code.
-
Click the top-right
Publishbutton, then test the whole flow withPreview.
More on jump logic
Send the customer to one of two Results Pages, depending on whether they answer the email question. The first page carries no discount, and the second carries the code.
-
Go to
Results Page Settings -> Advanced -> Multiple Results Pagesand clickActivate. A second Results Page is added.
-
Click
editto rename and edit the new page.
-
Write the discount code into a Content block on Results Page 2. Leave Results Page 1 without one, so only the customers who leave an address ever read the code.
-
Go to the Quiz Builder and click
+to add a discount question. Ask whether the customer wants a discount, with aYesand aNochoice.
-
Click
+again to add an email question after it.
-
Click
conditional logicon the discount question, openJump Logicand clickAdd Jump Logic.
- A customer who answers
Yesgoes on to the email question. - A customer who answers
Nogoes to Results Page 1, the one without the discount.
- A customer who answers
-
On the email question, set
Always Jump to...to Results Page 2. Everyone who leaves an address lands on the page with the code.
-
Click the top-right
Publishbutton, then test the whole flow withPreview.
More on jump logic
Send the customer to one of two Results Pages, depending on whether they answer the email question. The first page carries no discount, and the second carries the code.
-
Go to
Results Page Settings -> Advanced -> Multiple Results Pagesand clickActivate. A second Results Page is added.
-
Click
editto rename and edit the new page.
-
Write the discount code into a Content block on Results Page 2. Leave Results Page 1 without one, so only the customers who leave an address ever read the code.
-
Go to the Quiz Builder and click
+to add a discount question. Ask whether the customer wants a discount, with aYesand aNochoice.
-
Click
+again to add an email question after it.
-
Click
conditional logicon the discount question, openJump Logicand clickAdd Jump Logic.
- A customer who answers
Yesgoes on to the email question. - A customer who answers
Nogoes to Results Page 1, the one without the discount.
- A customer who answers
-
On the email question, set
Always Jump to...to Results Page 2. Everyone who leaves an address lands on the page with the code.
-
Click the top-right
Publishbutton, then test the whole flow withPreview.
More on jump logic
Send the customer to one of two Results Pages, depending on whether they answer the email question. The first page carries no discount, and the second carries the code.
-
Go to
Results Page Settings -> Advanced -> Multiple Results Pagesand clickActivate. A second Results Page is added.
-
Click
editto rename and edit the new page.
-
Write the discount code into a Content block on Results Page 2. Leave Results Page 1 without one, so only the customers who leave an address ever read the code.
-
Go to the Quiz Builder and click
+to add a discount question. Ask whether the customer wants a discount, with aYesand aNochoice.
-
Click
+again to add an email question after it.
-
Click
conditional logicon the discount question, openJump Logicand clickAdd Jump Logic.
- A customer who answers
Yesgoes on to the email question. - A customer who answers
Nogoes to Results Page 1, the one without the discount.
- A customer who answers
-
On the email question, set
Always Jump to...to Results Page 2. Everyone who leaves an address lands on the page with the code.
-
Click the top-right
Publishbutton, then test the whole flow withPreview.
More on jump logic
This article explains how to put a discount code on the results page or in a follow-up email. It also covers giving the code only to customers who leave an email address.