The Q&A module can be integrated into your product pages using an iframe.
To integrate your Q&A module via iframe, follow the instructions below:
- From the left-hand side menu of your Verified Reviews account, click on Questions & Answers.
- Then click on
Integration in the left-hand side menu of the page that has just opened.
- Click on Iframe Integration among the 3 available tabs.
The iframe requires certain parameters in order to display content.
These parameters are:
{{site}} : corresponds to the Website ID of your Verified Reviews account.
{{product}} : corresponds to your product ID.
{{token}} : corresponds to a sha1 hash of your Website ID and your secret key.Additionally, you can add parameters to pre-fill certain fields:
{{firstName}} : corresponds to the user's first name.
{{lastName}} : corresponds to the user's last name.
{{email}} : corresponds to the user's email address.
{{category}} : corresponds to the category you want to assign to the question.
{{productPage}} : corresponds to the product URL.
This way, the first name, last name, and email address fields will be pre-filled in the iframe forms.
By default, if the category field is not filled in, the question will inherit the product category.
Iframe tag:
<iframe src="//cl.avisverifies.com/medias/components/html/iframe/{{site}}_iframe.html#?idWebsite={{site}}&productI d={{product}}&token={{token}}&firstName={{firstName}}&lastName={{lastName}}&email={{email }}&category={{category}}&productPage={{productPage}}" id="myQAIframe"></iframe> <script type="text/javascript" src="//cl.avisverifies.com/medias/components/html/js/iframeResizer.min.js"></script> <script type="text/javascript"> (function(){ iFrameResize({log:true}, "#myQAIframe"); })(); </script>Iframe preview
Forms and parameters
The iframe allows you to group the following forms together: Question / Public reply / Report.
It also includes the voting system for questions and answers.
Each form requires certain fields in order to be submitted. However, some fields are shared across all forms:
- First name/Nickname: a field where the user must enter at least a nickname.
- Email: a field where the user must enter a valid email address, as each form sends a confirmation email.