OpenCart 2.3–4.1 extension

Supreme Product Q&A

Shoppers ask questions on the product page and you answer them in public, like the questions and answers on the big marketplaces. A question can wait for your answer before it is shown, the asker is told by e-mail when you answer, and spam is held back by a hidden trap field and a limit per visitor. Works with any theme: the block is added to the product page by a small script, so no theme file is edited.

$20
Supreme Product Q&A — overview

For OpenCart 2.3, 3.0, 4.0 and 4.1

What the shopper sees

  • A "Questions and answers" block under the product tabs (or at the end of the product column when the theme has no tabs) with every shown question, its answer, who asked and the date. "Show more" loads the next page (you choose 1 to 20 per page).
  • A form: name, e-mail (optional or required, your choice) and the question, with a live "characters left" counter (500 characters). Mistakes are named next to the field; a valid question is acknowledged with a message that is read out by screen readers.
  • A logged-in customer's name and e-mail are filled in. Text typed by shoppers is shown as plain text, never as code. Works on phones: no sideways scroll, buttons at least 40 pixels tall.

What you do

  • New questions wait until you answer them (or switch on "show new questions at once"). In the module page you see all questions, filter by waiting, not answered, shown or hidden, write the answer under each one and press "Save answer and show", save a draft without showing it, hide or show a question later, or delete it.
  • The numbers at the top: all questions, waiting, not answered, shown, hidden.
  • You can be e-mailed about every new question (to the shop e-mail address).
  • When you publish an answer, the asker gets one e-mail with the question, your answer and a link to the product. Editing the answer later does not send a second mail, and a question without an address sends none.

Safe by design

  • The e-mail address is never shown on the page and never sent to the browser.
  • Name and question are cleaned of tags and cut at their limits; answers at 2000 characters.
  • A hidden trap field catches simple bots (they are told it worked, nothing is saved), a visitor can send five questions an hour, the same question twice in a day is stored once, and a visitor's address is kept only as a one-way hash for this limit.
  • Questions can only be asked for products that exist and are switched on. Admin only: viewing needs Access, answering and moderating need Modify; nothing can be changed without an admin session.
  • All storefront wording is in one language file: copy it into another language folder and translate the right-hand side.
  • The questions are kept if you uninstall.

Notes

  • The shop owner's e-mail about a new question and the asker's e-mail use the shop's own mail settings (System > Settings > Mail); the shopper waits for the owner's e-mail while the question is saved, so a slow mail server makes the "Send question" button wait.
  • The block is built in the visitor's browser: search engines that do not run scripts do not see the questions.
  • The limit per visitor uses the address the web server sees. Behind a proxy or CDN that hides visitor addresses, all visitors share the limit.
  • The e-mail to the asker ("Hello", the subject line) is in the admin language file of the shop's admin language; translate that file for other languages.

Screenshots

Supreme Product Q&A — Storefront questions
Storefront questions
Supreme Product Q&A — Admin settings part 1
Admin settings part 1
Supreme Product Q&A — Admin settings part 2
Admin settings part 2

More modules

You May Also Need.

See all OpenCart modules