Placing The Form
The Problem This Solves
By default, the Yaxii Smart Form appears automatically on WooCommerce product pages. But if you want the form on a landing page, a bundle page, or any custom content, you need a manual placement method. This guide covers all three ways to put the form exactly where you need it.
Method 1 — Automatic Placement on Product Pages
The form displays automatically on all WooCommerce product pages as soon as the plugin is active. No action is required.
To toggle this global behavior, go to Yaxii Smart Form > Form Settings, open the Behavior tab, and switch the Global Form Enabled option.
[Screenshot: “Behavior” tab with the “Global Form Enabled” toggle in the ON position]
Method 2 — Shortcode on Any Page
To display the form outside of a native WooCommerce product page (landing page, blog post, text widget), use the universal shortcode:
”[yaxii_smart_form- 1Copy the ShortcodeCopy the shortcode shown above.
- 2Paste Into Your ContentOpen the WordPress page or post where you want the form. In the Gutenberg editor, add a Shortcode block (search “Shortcode” in the block library), paste the shortcode inside it, then publish or update the page.
[Screenshot: Gutenberg editor with a Shortcode block containing “[yaxii_smart_form]” inserted between two content blocks]
Method 3 — Dedicated Gutenberg Block
If you build pages with the WordPress block editor, a dedicated Yaxii Smart Form block is available directly in the block library.
- 1Insert the BlockIn the Gutenberg editor, click the + button to add a new block. Search “Yaxii” in the search bar. Click the Yaxii Smart Form block to insert it.
[Screenshot: Gutenberg block library with “Yaxii” typed in the search field and the “Yaxii Smart Form” block appearing in results]
- 2Configure the BlockOnce inserted, a configuration panel appears in the right sidebar of the editor. Use it to set the target product ID and any other embed-specific options.
[Screenshot: Right sidebar configuration panel for the “Yaxii Smart Form” block, showing a “Product ID” input field]
- 3Publish or UpdateClick Publish or Update to save the page with the embedded form.
Comparing the Three Methods
| Method | Best For | Action Required |
|---|---|---|
| Automatic | All standard WooCommerce product pages | None — works on activation |
| Shortcode | Custom pages, landing pages, widgets | Paste shortcode into a Shortcode block |
| Gutenberg Block | Pages built with the block editor | Insert block from the Gutenberg library |
What’s Next?
Your form is customized and placed exactly where you need it. Explore the next pillars to go further.
→ Read: Setting Up Shipping and the 58 Wilayas → Read: Protecting Your Store Against Fake Orders