How to add conditional product fields in WooCommerce
By Raz Technologies · published · data updated
How do I show or hide WooCommerce product fields based on other choices?
Install a product add-ons plugin with conditional logic, which shows or hides a field based on the customer's earlier choices (15 of the 20 we track document it, 8 in the free version). As of 2 November 2026, the top-ranked plugin in our product add-ons ranking is Extra Product Options For WooCommerce | Custom Product Addons and Fields (80.1/100). See our product add-ons plugin ranking for the full comparison.
The problem
A personalised product often needs follow-up questions: pick "Engraving" and a text box appears; choose "Custom size" and width and height fields show up. Showing every field at once confuses customers, and WooCommerce has no built-in way to add such fields, let alone show them conditionally.
Plugins that document conditional logic
These ranked product add-ons plugins document conditional logic (evidence: Documented, from each plugin's readme or listing). The column shows whether it is in the free or the paid version.
| Plugin | Rank | Feature in | Checkout Blocks | Installs |
|---|---|---|---|---|
| Extra Product Options | #1 | Paid version | Yes | 30,000+ |
| Extra Product Options & Add-Ons | #2 | Paid version | Not declared | No data |
| Extra Product Options | #4 | Free version | Yes | 600+ |
| Advanced Product Fields | #5 | Free version | Not declared | 50,000+ |
| Flexible Product Fields | #6 | Paid version | Not declared | 10,000+ |
| Product Addons | #7 | Free version | Not declared | 30,000+ |
| Product Configurator | #8 | Paid add-on | Not declared | 2,000+ |
| YayExtra | #10 | Free version | Not declared | 1,000+ |
How to set it up (typical steps)
- Create an option group (or add fields on the product) with the field that drives the condition, for example a "Personalisation" select with "None" and "Engraving".
- Add the dependent field, for example an "Engraving text" box, and price it if needed.
- In the dependent field's conditional rules, choose "Show if Personalisation is Engraving".
- Test on the product page, then check that the choice and its price reach the cart, the order and the emails.
Menu names differ between plugins; see each plugin's documentation, linked from its profile.
What to check before you choose
- Whether conditions are in the free version or only in the paid one.
- Conditions across several fields (AND/OR), not just one.
- Whether hidden fields' prices are left out of the cart total.
Other plugins people ask about
- Advanced Product Fields ranks #5 of 18 in our product add-ons ranking as of 2 November 2026 (score 70.3/100). Its strongest scores are momentum (download growth) and performance (our lab); its weakest are security (vulnerability history) and adoption (active installs).
- Flexible Product Fields ranks #6 of 18 in our product add-ons ranking as of 2 November 2026 (score 68.6/100). Its strongest scores are security (vulnerability history) and satisfaction (ratings); its weakest are momentum (download growth) and adoption (active installs).
FAQ
Can WooCommerce show product fields conditionally without a plugin?
No. WooCommerce has no custom product fields at all; variations change with attribute choices, but they cannot show or hide extra fields. Conditional fields need a product add-ons plugin.
Can a conditional field also change the price?
In most add-on plugins, yes: each option can add a fixed or percentage price, and conditional rules decide whether that option is shown. Check the "Feature in" column: some plugins offer conditions only in the paid version.
Can a conditional field be a file upload?
Only in plugins that support uploads: 16 of the 20 product add-ons plugins we track document customer file upload, 2 of them in the free version (as of 8 November 2026).
