Product Q&A
ShopWired's product questions and answers feature allows visitors to your website to ask questions about a product. These questions are sent to you by email, and you can respond, with the answer being sent to the visitor by email.
You can also display product questions and answers on your website to assist future visitors.
To install the app:
- Navigate to Apps
- Locate the Product Q&A app
- Select
install this app
Enabling questions on products
Enabling questions on products
Once you've installed the app, you'll be able to configure which products you accept questions on using the setting Is this product suitable for Q&A in the Additional information section when creating or editing a product.
If you want to configure to accept questions on all products, navigate to Products > Settings and select the setting Activate product Q&A on all products.
Managing and responding to product questions
Managing and responding to product questions
Product questions can be viewed and managed from your ShopWired account by navigating to Website > Product Q&A.
All product questions are listed in a table. You can search questions by product name, SKU code, or by the questioner's email address.
- Use the
question
link to view and manage the question/answer - Use the
display
option to toggle the question's display on your website - The
date
column shows the date that the question was created - The
answered
column shows a tick icon if an answer has already been added to the question
Click a question to view and manage it:
- The Product setting displays the product the question was asked on and can be changed if the question is more suited to another product
- The Question date setting displays the date that the question was created and can be displayed on your website; you can edit the date field
- The Questioner name (which can be displayed on your website) and the Questioner email address (which cannot be displayed on your website) can both be edited
- The Display the question on your website setting indicates the questioner's preference when submitting the question but does not affect its display on your website and can be edited
- The contents of the original question are displayed in the Question contents setting and can be edited/moderated if you wish to display it on your website
- Use the Answer contents setting to add an answer to the question and, when answering a question, use the
send email to the questioner
setting if you'd like to send an email to the questioner informing them of your answer - The number of Helpful votes and Unhelpful votes a question has received by website visitors can be edited in the fields
- Use the Select other products to display the question on setting to display the question and answer on other products on your website; you can select a maximum of 50 additional products
- Select
save changes
once you've answered or edited the information. If you have selected to send the answer to the questioner, it will be sent when you select to save changes
Product questions and answers emails
Product questions and answers emails
When a visitor asks a question about one of your products, the Product question asked email is generated. This email is sent to the questioner, but you can receive a copy of the email by configuring the email notification settings in your ShopWired account.
When you answer a question and indicate to send the answer to the questioner by email, the Product question answered email is generated (which uses the answer
variable to return the answer). This email is sent to the questioner, but you can receive a copy of the email by configuring the email notification settings in your ShopWired account.
You can customise the contents of the Product question asked or Product question answered emails from within your ShopWired account.
Product questions and answers on your website
Product questions and answers on your website
To display a form on your website allowing visitors to ask questions about your products, you'll need to add code to your website's theme files. The product question form can contain the following fields:
- Name
- Email address
- Question
- Whether the question should be public or not (the visitor's preference)
To display questions and their answers, you'll need to add code to your website's theme files. For each product question, you can display:
- Questioner's name
- Questioner's question
- The date of the question
- Your answer
- The number of upvotes received
- The number of downvotes received
- Links for visitors to upvote/downvote a question/answer
Product questions and answers are ordered by the overall rating (number of upvotes - number of downvotes
), with the most popular displayed at the top and the most unpopular at the bottom.
The code required to add the feature to your website is contained below. For assistance in adding the code to your website, contact theme support.
Theme installation
Theme installation
Question form
To display a form on your product pages allowing visitors to ask questions, use the code example below:
<form action="{{ product.url }}#questions" method="post">
<input type="text" name="name" value="{{ new_question.name }}">
<input type="text" name="email" value="{{ new_question.email }}">
<textarea cols="30" rows="5" name="question">{{ new_question.question }}</textarea>
<input type="checkbox" name="public" value="1" {{ new_question.is_public ? 'checked="checked"' : '' }}>
<button class="button" name="send_question" value="1">Send Your Question</button>
</form>
product.allow_questions
Returns true
if the product has been configured to accept questions.
reCAPTCHA
When using Google reCAPTCHA, the variable question_recaptcha
will return true
if reCAPTCHA is enabled.
Use the code below to render reCAPTCHA.
<div class="g-recaptcha" data-sitekey="{{ question_recaptcha.key }}" data-stoken="{{ question_recaptcha.token }}"></div>
Twig variables
product.questions
Returns an array of product questions (and their answers).
question.id
Returns the unique ID of the question
question.name
Returns the name of the questioner.
question.question
Returns the question asked.
question.answer
Returns the answer configured. Answers are configured in HTML, requiring the use of the raw
filter.
question.positive_votes
Returns the number of positive votes for the question.
question.negative_votes
Returns the number of negative votes for the questions.
Enabling question voting/rating
Add links to vote up/down icons to enable visitors to rate questions.
To enable a positive rating on a question:
<a href="{{ product.url }}?rate_question=1&question_id={{ question.id }}" data-allow="1">...</a>
To enable a negative rating on a question:
<a onClick='$.post("{{ product.url?rate_question=1&question_id={{ question.id }}", {rating: "-1"}, function(){window.location.reload(true)});'>