How to Add a Product Recommendation Quiz Using the Gutenberg Block in WooCommerce
Product Recommendation Quiz for WooCommerce publishes each wizard as a shortcode you can paste into a page or post. If you build pages in the block editor, there is also a block that does the same job. You pick the wizard from a dropdown instead of copying a shortcode and hoping you got the ID right.
For example, a store adding a “Find your fit” quiz to a landing page inserts the block, selects that wizard from the sidebar, and publishes — no shortcode involved.
In The Article
Steps
- Confirm you have a saved wizard. The block lists wizards you have already created. If you have none yet, go to Dotstore Plugins > Product Recommendation Quiz and add one with its questions first.
- Edit the page or post, click the + inserter, and search for Product Recommendation Quiz. It sits in the WooCommerce block category, and also turns up under searches like wizard, quiz, or finder.
- Open the block sidebar and find the Wizard panel. Choose your quiz from the Select wizard dropdown (labeled SELECT WIZARD in the screenshot). The panel then shows a Shortcode field with the matching shortcode, such as
[wpfp_1], in case you want to reuse it elsewhere. The block in the canvas updates to show the wizard name you picked.
- Click Publish or Save / Update, then view the page. The quiz renders the same way as the shortcode version — same questions, same styling, same result list. Inside the editor you normally see a grey placeholder box with the wizard name, not a live quiz. That is expected; the quiz is rendered when the page loads.
Pro tips
- Choosing the wizard by name avoids pasting the wrong shortcode ID.
- You can keep page building in the editor, without switching tabs to copy a shortcode from Manage Wizards.
- Use the editor’s alignment controls if you want the quiz to stretch to wide or full width.
- The block sidebar also includes Additional CSS class(es) under Advanced, as shown in the screenshot, if you need a custom class on that block.
Common Use Cases
1. A different quiz on each category page
If you run several wizards — one for coffee gear, one for accessories — choose the right one from the dropdown on each page instead of tracking which shortcode ID belongs where.
FAQs
The block doesn’t appear in the inserter. What should I check?
Make sure the plugin is active and that you are using the block editor rather than the classic editor. Searching for wizard or quiz also finds it if you do not spot it under the WooCommerce category.
Why does the block say “No wizards found. Create a wizard first.”?
No wizards have been saved yet. Create one under Dotstore Plugins > Product Recommendation Quiz, then return to the page and select it in the block.
Does the block replace the shortcode?
No. The block renders the same wizard through the same shortcode behind the scenes, so any shortcode already placed on your site keeps working. The sidebar shows that shortcode, such as [wpfp_1] , as a read-only value.