Description
Product Dropdown For Contact Form 7 adds a new [woocommerce_product] form tag to Contact Form 7 that renders a dynamic, searchable WooCommerce product dropdown on the front end. Customers can select one or more products directly within any CF7 form — making it ideal for order enquiries, product support requests, quote requests, and any form where the customer needs to reference a specific WooCommerce product.
The plugin registers a visual tag generator directly inside the Contact Form 7 form editor, so you can configure and insert the product dropdown field without writing any code. It is powered by Select2 for a polished, accessible dropdown experience with a placeholder prompt on the front end.
Requires both Contact Form 7 and WooCommerce to be installed and activated.
📄 Documentation | 🔴 Live Demo | ⭐ Upgrade to Pro
How It Works
Once activated, a new woocommerce_product button appears in the Contact Form 7 tag generator toolbar. Open the generator, configure your options — field name, ID, class, and product ID filter — then click Insert Tag to place it into your form. On the front end, the field renders as a clean Select2-powered product dropdown with a «— Select Product —» placeholder. The selected product name and product ID are passed through as a CF7 mail tag value, so the product choice appears in your notification emails.
Example tag:
[woocommerce_product woocommerce_product-1 pro_id:21-22]
Free Features
WooCommerce Product Dropdown Field
* Adds a new [woocommerce_product] form tag type to Contact Form 7
* Renders a fully functional <select> dropdown on the front end populated with your live WooCommerce products
* Each dropdown option displays the product name — and the submitted value includes the product name along with its product ID (e.g. Product Name (product_id: 21)) for easy identification in notification emails
* Defaults to showing all published WooCommerce products when no filter is applied
Filter Products by ID
* Enter specific WooCommerce product IDs — separated by hyphens — to limit the dropdown to only those products
* Example: entering 21-22-45 shows only those three products in the dropdown
* Useful for forms where you want to offer a curated selection of products rather than your entire catalogue
Multiple Product Selection
* Enable the «Allow Multiple Product Selection» option in the tag generator to let customers pick more than one product from the dropdown
* When enabled, the dropdown renders with the HTML multiple attribute and the field name uses array notation so all selected products are captured correctly
Required Field Support
* Mark the product dropdown as required by checking «This is a required field» in the tag generator — appends * to the tag type
* Full CF7 validation integration — displays CF7’s standard validation error if the required field is left empty on submission
* aria-required="true" and aria-invalid attributes are applied automatically for accessibility compliance
Custom ID & Class
* Set a custom HTML id attribute on the dropdown for JavaScript targeting or CSS styling
* Add one or more custom CSS class names to the dropdown for full theme styling control
Select2 Powered Dropdown UI
* The dropdown is rendered using Select2 (v4.1.0) — a polished, accessible JavaScript dropdown library
* Displays a «— Select Product —» placeholder when no product is selected
* Fully responsive and works correctly on desktop, tablet, and mobile screens
Mail Tag Integration
* The selected product value is available as a CF7 mail tag
* Insert the mail tag into the CF7 Mail tab to include the customer’s product selection in notification emails sent to admins or customers
Visual Tag Generator in the CF7 Editor
* A dedicated tag generator panel is added to the Contact Form 7 form editor — no manual shortcode writing needed
* All options are configurable from a clean UI with live tag preview
* One-click Insert Tag places the generated tag directly into the form editor
* Includes a mail tag tip at the bottom of the panel
Pro Version Features
Upgrade to Product Dropdown For Contact Form 7 Pro to unlock advanced product filtering and display options — all disabled in the free tag generator panel.
Filter by Product Category
* Instead of filtering by product IDs, select any WooCommerce product category from the tag generator
* The dropdown will show only products belonging to the selected category — dynamically updated as products are added or removed from that category
Filter by Product Tag
* Filter the dropdown to show only products that carry a specific WooCommerce product tag
* Select the tag from the tag generator panel — all products tagged with that term will populate the dropdown
Filter by Product Color Attribute
* Filter the product dropdown by the pa_color WooCommerce product attribute
* Select a specific colour term from the tag generator — only products assigned that colour attribute will appear in the dropdown
Filter by Product Size Attribute
* Filter the product dropdown by the pa_size WooCommerce product attribute
* Select a specific size term from the tag generator — only products assigned that size attribute will appear in the dropdown
Filter by Stock Status
* Choose to display only In Stock products or only Out of Stock products in the dropdown
* Keeps the product list relevant and avoids customers selecting products they cannot order
Show Product Price in Dropdown
* Enable the «Enable Price» option to display each product’s price alongside its name in the dropdown options
* Helps customers immediately see pricing while selecting a product within the form
Product Search Box
* Enable the «Search Box» option to activate Select2’s built-in live search functionality inside the dropdown
* Customers can type to instantly filter and find the product they are looking for — essential for stores with large product catalogues
Example Use Cases
- Order Enquiry Forms — Let customers select the product they are enquiring about before submitting a message
- Quote Request Forms — Allow customers to pick one or more products they want a custom quote for
- Product Support Forms — Reference a specific product in a customer support or warranty claim form
- Return & Exchange Forms — Let customers identify the product they wish to return or exchange
- Custom Order Forms — Build bespoke order forms where customers choose from a curated list of products
What the Submitted Value Looks Like
When a customer selects a product and submits the form, the value passed to the notification email via the mail tag is formatted as:
Product Name (product_id: 21)
This gives you both the human-readable product name and the WooCommerce product ID in every form submission — making it easy to identify and process the enquiry.
Screenshots

![CF7 form template — generated [woocommerce_product] shortcode tag shown in the form body](https://ps.w.org/product-dropdown-for-contact-form-7/assets/screenshot-2.png?rev=2775231)


Installation
From the WordPress Plugin Directory:
- Make sure Contact Form 7 and WooCommerce are both installed and activated.
- In your WordPress dashboard, go to Plugins > Add New.
- Search for «Product Dropdown For Contact Form 7» and click Install Now.
- Click Activate once installation is complete.
- Open any Contact Form 7 form — click the new woocommerce_product button in the tag generator toolbar.
- Configure your field name, ID, class, product ID filter, and other options, then click Insert Tag.
- Go to the Mail tab of the CF7 form and add the mail tag to include the selected product in notification emails.
- Save the form and test it on the front end — the product dropdown will appear with your WooCommerce products.
Manual Upload:
- Download the plugin ZIP file.
- In your WordPress dashboard, go to Plugins > Add New > Upload Plugin.
- Upload the ZIP, click Install Now, then Activate.
- Follow steps 5–8 above.
FAQ
-
Does this plugin require Contact Form 7 and WooCommerce?
-
Yes. Both Contact Form 7 and WooCommerce must be installed and activated on your WordPress site. The plugin registers a custom CF7 form tag and queries WooCommerce products — it cannot function without either plugin.
-
Where do I find the new product dropdown field in CF7?
-
After activating the plugin, open any Contact Form 7 form in your WordPress admin. A new woocommerce_product button will appear in the tag generator toolbar above the form editor. Click it to open the tag generator panel.
-
How do I filter the dropdown to show only specific products?
-
In the tag generator, enter WooCommerce product IDs separated by hyphens in the Product ID field — for example
21-22-45. Only those products will appear in the dropdown. Leave the field empty to display all published products. Filtering by category, tag, colour, and size is available in the Pro version. -
Can customers select more than one product?
-
Yes. Check the «Allow Multiple Product Selection» option in the tag generator. The dropdown will support multiple selections and all chosen products will be captured in the form submission.
-
Can I make the product dropdown a required field?
-
Yes. Check «This is a required field» in the tag generator. CF7 will display a validation error if the customer submits the form without selecting a product.
-
How does the selected product appear in the notification email?
-
The submitted value is formatted as
Product Name (product_id: 21). Add the corresponding mail tag in the CF7 Mail tab to include it in your email notification. The mail tag tip is shown at the bottom of the tag generator panel. -
Can I show product prices in the dropdown?
-
Yes — this is a Pro version feature. Enable the «Enable Price» option in the tag generator to display product prices alongside names in the dropdown options.
-
Can customers search for a product within the dropdown?
-
Yes — this is a Pro version feature. Enable the «Search Box» option to activate Select2’s live search functionality inside the dropdown.
-
Is the dropdown mobile-friendly?
-
Yes. The dropdown is powered by Select2 and is fully responsive, adapting correctly to all screen sizes including smartphones and tablets.
-
Can I filter by stock status so only In Stock products show?
-
Yes — this is a Pro version feature. The stock status filter lets you restrict the dropdown to only In Stock or only Out of Stock products.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Product Dropdown For Contact Form 7” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Product Dropdown For Contact Form 7” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0
- Initial release — Adds a [woocommerce_product] form tag to Contact Form 7 with a WooCommerce product dropdown, product ID filtering, multiple selection, required field validation, custom ID/class support, Select2 UI, and mail tag integration. Pro version adds category, tag, attribute, stock status, price, and search filtering.
