Description
Order Dropdown Contact Form 7 For WooCommerce adds a powerful new form field type to Contact Form 7 that renders a dynamic dropdown list of WooCommerce orders. Customers can select an order directly from the form — making it ideal for support requests, return and refund enquiries, order follow-ups, and any form where a customer needs to reference a specific WooCommerce order.
The plugin registers a custom [woocommerce_order] form tag and adds a visual tag generator to the Contact Form 7 editor, so you can build and insert the field without touching any code.
Requires both Contact Form 7 and WooCommerce to be installed and activated.
How It Works
Once installed, a new woocommerce_order field type appears in the Contact Form 7 tag generator. Insert the tag into any CF7 form and the field renders as a <select> dropdown on the front end. Each option displays the order ID, current order status, and the order creation date — giving customers enough context to identify their order at a glance.
Example tag:
[woocommerce_order woocommerce_order-968 status:wc-processing|wc-on-hold]
The selected order value is then available as a mail tag, so it gets included in the notification email sent to you when the form is submitted.
Key Features
WooCommerce Order Dropdown Field
* Adds a new [woocommerce_order] form tag to Contact Form 7
* Renders a fully functional <select> dropdown populated with live WooCommerce orders
* Each dropdown option displays the order number, status, and creation date in the format: #123 (Status: processing) - (Date: Jan 15, 2024) — making it easy for customers to identify the right order
Filter Orders by Status
* Control exactly which orders appear in the dropdown using the status: option
* Supports all standard WooCommerce order statuses: wc-pending, wc-processing, wc-on-hold, wc-completed, wc-cancelled, wc-refunded, wc-failed
* Filter by multiple statuses at once using pipe | separators — for example: status:wc-processing|wc-on-hold|wc-completed
* Leave the status option empty to show orders of all statuses
Visual Tag Generator in CF7 Editor
* A dedicated tag generator panel is added directly inside the Contact Form 7 form editor — no manual shortcode writing needed
* Configure the field name, HTML ID, CSS class, and order status filter all from a clean UI
* Generated tag is previewed live and inserted into the form with one click
* Includes a mail tag reference tip so you know exactly how to include the selected value in your notification emails
Required Field Support
* Mark the order dropdown as a required field by checking the “This is a required field” option in the tag generator (adds the * suffix to the tag)
* Full CF7 validation integration — shows CF7’s standard validation error message if the required field is left empty on submission
* Proper aria-required and aria-invalid accessibility attributes are applied automatically
Custom ID & Class
* Set a custom HTML id attribute on the dropdown for JavaScript targeting or CSS anchor styling
* Add one or more custom CSS class names to the dropdown for full styling control
Mail Tag Integration
* The selected order value is automatically available as a CF7 mail tag
* Insert the mail tag into the CF7 Mail tab to include the selected order in form notification emails sent to admins or customers
Fully Responsive
* The order dropdown is responsive and adapts gracefully on mobile and small screens
* Font size is automatically adjusted on screens under 767px for comfortable readability on smartphones and tablets
Clean & Secure
* All submitted data is sanitized using sanitize_text_field before processing
* Lightweight — only a minimal CSS file is enqueued on the front end; no unnecessary JavaScript dependencies
* Follows WordPress and Contact Form 7 coding standards throughout
Example Use Cases
- Customer Support Forms — Let customers select the specific order they are asking about in a support or help desk form
- Return & Refund Requests — Add an order dropdown to your returns form so customers identify the order they wish to return
- Order Follow-Up Forms — Allow customers to check in on the status of a specific order by selecting it from the form
- Complaint & Feedback Forms — Reference a specific WooCommerce order as part of a complaint or feedback submission
- Cancellation Request Forms — Let customers select a pending or processing order they want to cancel
Order Status Reference
When using the status: option, use the following WooCommerce status slugs:
wc-pending— Payment pendingwc-processing— Payment received, order being processedwc-on-hold— Awaiting payment confirmationwc-completed— Order fulfilled and completewc-cancelled— Order cancelledwc-refunded— Order refundedwc-failed— Payment failed or declined
Separate multiple statuses with a pipe character: status:wc-processing|wc-on-hold
Screenshots

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


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 “Order Dropdown Contact Form 7 For WooCommerce” and click Install Now.
- Click Activate once installation is complete.
- Open any Contact Form 7 form — click the new woocommerce_order button in the tag generator toolbar.
- Configure your field name, ID, class, and order status filter, then click Insert Tag.
- Save the form and test it on the front end — the dropdown will appear with your live WooCommerce orders.
Manual Upload:
- Download the plugin ZIP file.
- In your WordPress dashboard, go to Plugins > Add New > Upload Plugin.
- Upload the ZIP and click Install Now, then Activate.
- Follow steps 5–7 above.
FAQ
-
Does this plugin require Contact Form 7 and WooCommerce?
-
Yes. Both Contact Form 7 and WooCommerce must be installed and activated. The plugin registers a custom CF7 form tag and queries WooCommerce orders — it cannot function without either plugin.
-
Where do I find the new order dropdown field in CF7?
-
After activating the plugin, open any Contact Form 7 form in your WordPress admin. You will see a new woocommerce_order button 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 certain order statuses?
-
In the tag generator, enter the desired WooCommerce status slugs in the Order Status field, separated by the pipe character
|. For example:wc-processing|wc-on-hold. You can also add thestatus:option manually in the form tag. Leave the field empty to show all order statuses. -
Can I make the order dropdown a required field?
-
Yes. In the tag generator panel, check the “This is a required field” checkbox. This appends
*to the tag type, and CF7 will show a validation error if the visitor submits the form without selecting an order. -
How does the selected order appear in the notification email?
-
The plugin supports CF7 mail tags. After inserting the tag, go to the Mail tab of the CF7 form editor and insert the corresponding mail tag (shown at the bottom of the tag generator panel) into your email body. The selected order number, status, and date will appear in the email when the form is submitted.
-
Can I add custom CSS to style the order dropdown?
-
Yes. Use the Class field in the tag generator to assign one or more custom CSS classes to the dropdown, then target those classes in your theme’s stylesheet or the WordPress Customizer’s Additional CSS field.
-
Is the plugin mobile-friendly?
-
Yes. A responsive CSS rule is included that adjusts the dropdown font size on screens narrower than 767px, ensuring comfortable usability on mobile devices.
Reviews
Contributors & Developers
“Order Dropdown WooCommerce For Contact Form 7” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Order Dropdown WooCommerce 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_order] form tag to Contact Form 7 that renders a filterable WooCommerce order dropdown, with tag generator UI, required field validation, custom ID/class support, and mail tag integration.
