A WordPress plugin that allows you to sell quizzes as WooCommerce products. Customers can purchase products and take quizzes with random questions from a question bank.
Features
- Attach quizzes to WooCommerce products
- Create question banks with multiple-choice and true/false questions
- Randomize questions from the question bank for each quiz attempt
- Configure the number of questions per quiz (default: 10)
- Set pass percentage for quizzes
- Optional time limit for quiz completion
- Progress bar to track quiz progress
- Show correct answers after quiz completion (optional)
- Store and display quiz results
- Shortcode to display quizzes on any page
- Export and import questions and question banks
Installation
- Upload the
quiz-commerce
folder to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Make sure WooCommerce is installed and activated
Usage
Creating Question Banks and Questions
- Go to Products > Question Banks to create a new question bank
- Add questions to the bank by going to Products > Quiz Questions
- For each question, you can:
- Set the question type (multiple choice or true/false)
- Add answer options and mark the correct answer
- Provide an explanation for the correct answer
- Assign the question to one or more question banks
- Set the question category and difficulty level
Attaching Quizzes to Products
- Edit a WooCommerce product
- Go to the “Quiz” tab in the product data section
- Check “Enable Quiz” to enable the quiz for this product
- Select a question bank from the dropdown
- Configure quiz settings:
- Number of questions to display
- Pass percentage
- Whether to show correct answers after completion
- Time limit (optional)
- Save the product
Taking Quizzes
Customers who purchase a product with a quiz can access the quiz from:
- The product page (Quiz tab)
- Their My Account page (My Quizzes section)
- Any page where you’ve added the shortcode
Shortcode
You can display a quiz on any page using the shortcode:
[wc_quiz product_id="123"]
Replace 123
with the actual product ID.
Admin Settings
Go to Products > Quiz Settings to configure global settings for the plugin:
- Default number of questions per quiz
- Default pass percentage
- Whether to show correct answers by default
- Default time limit settings
Import and Export
Go to Products > Quiz Import/Export to import or export questions and question banks:
Exporting Questions
- Select a question bank from the dropdown (or choose “All Question Banks”)
- Click the “Export Questions” button
- A JSON file will be downloaded containing all questions from the selected bank(s)
Importing Questions
- Click “Choose File” and select a JSON file exported from Quiz Commerce – Sell Exams & Tests
- Configure import options:
- Create question banks if they don’t exist
- Skip duplicate questions (based on title)
- Click the “Import Questions” button
- Review the import results
Viewing Quiz Results
Quiz results are stored for each user and can be viewed:
- On the product edit page (Quiz Results meta box)
- In the user’s My Account area
Requirements
- WordPress 5.0 or higher
- WooCommerce 3.0 or higher
- PHP 7.0 or higher
Support
If you need help with the plugin, please contact us at [email protected]
License
This plugin is licensed under the GPL v2 or later.
You must be logged in to post a review.
Reviews
There are no reviews yet.