If you would like the customer to answer a list of questions before they add to the basket, you can enter a list of questions using the syntax described below.
For the above example, the following is the configuration:
Where do you enter the questions?
When logged in as web admin and on the product detail page, just click EDIT PRODUCT CONTENT and scroll down the left side to this box and you will see a text box called Product Configuration where you can enter the questions:
Use NOTEPAD and PREVIEW
The Product Configuration box above is very small so it's best to use NOTEPAD for building up your configurations and then copying and pasting it into the box above - and then clicking PREVIEW to see what it looks like before you decide whether to click SAVE or not.
Rules for the Configurator
For the product configurator, you enter a configuration field which is a large textbox where you enter a list of commands which are executed from the top down.
- Special Characters: The following characters are special characters and cant be used in the display titles or codes: =,;+,-"
- Question Types: These can be QUESTION or TEXTBOXQUESTION and you use the following formats:
- Question: This is a list of radio buttons presenting options
- TextboxQuestion: This is a textbox which allows the user enter a value to enter up to 100 characters
Question: Display Title
TextboxQuestion Display Title
- CopyConfiguration=ProductCode - use this to tell the configurator to use the configuration from another product (this allows you have 1 configuration that is then reused by other products)
Example 1: Asking a list of questions
For example, to add 3 questions, enter this into the textbox:
Question: Enter question 1 here
Question: Enter question 2 here
Question: Enter question 3 here
For the above example, the 3 questions would display to the user with radio buttons for Yes and No.
Example 2: Alternative to Yes/No
If you would like to display alternative options instead of the default of Yes and No, enter them as follows using the Options keyword below the question:
Question: Enter question 1 here
Options: Option1, Option2, Option3
Question: Enter question 2 here
In the above example, the user would see Option1, Option2 and Option3 instead of Yes and No.
Note that when you don’t put in options, it is the same as putting this below the question:
Question: Enter question 1 here
Options: Yes, No
Example 3: Option for Textbox
You can also ask the customer to enter free text instead by using the keyword TextboxQuestion: before the question as in the following example:
Question: Enter question 1 here
TextboxQuestion: If you are taking any current medicine, please enter them here
Question: Enter question 2 here
For the above example, the textbox would be displayed between question 1 and question 2.
Example 4: Validating the Customer’s Answers
If you want the customer’s answers to be valuated, when the customer clicks Add to Basket, their answers can be checked for wrong answers and the user can then be displayed an error message if they supply a wrong answer.
In these cases, the customer is not allowed to complete their order and the following is displayed:
Sorry, we cannot complete this order - Can you please Contact Us for a Private Consultation
The above text can be changed by using the keyword ErrorMessage. For example:
ErrorMessage= Sorry, we can not process your order due to concerns about your answers given
However, if they submit again using different answers and the order is allowed to go through (as you cant stop them from trying again and again), each time they submit their answers, the wrong answers are recorded within the audit report that is displayed when the order comes through to the back-end (more details below) so that you can see any wrong answers submitted before they were corrected and then resubmitted.
The answers that were answered incorrectly are highlighted in the audit report along with the reason which is added to the configuration below.
To configure an error message for an option entered, use the Error keyword as follows along with the reason it's not allowed. In this example, entering No for question 1 and Option3 for question 2 are the correct answers and the reasons are supplied after the equals (=):
ErrorMessage= Sorry, we can not process your order due to concerns about your answers given
Question: Enter question 1 here
Error: Yes=Not allowed purchase this product if have a high cholestrol
Question: Enter question 2 here
Options: Option 1,Option 2,Option 3
Error:Option 1= Not allowed purchase this product if have X
Error:Option 2= Not allowed purchase this product if have Y
TextboxQuestion: Please enter any allergies here
Question: Enter question 4 here
Comments
0 comments
Please sign in to leave a comment.