• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WP Desk = premium plugins for WordPress & WooCommerce
  • Plugins
        • Checkout & OrdersMake your work easier and automate the orders. Adjust the order form to your needs and make it more useful to your customers. Print order labels directly from WooCommerce. Put the orders in order using our plugins. Find out how to streamline the procurement process in your store.
          • Flexible Checkout Fields
          • Active Payments
          • Automatic Payment Status
          • Flexible Refund and Return Order
          • Print Orders and Address Labels
          • Flexible Subscriptions Recurring Shipping
          • Flexible Subscriptions Payment Retry
          • Flexible Subscriptions Stock Management
        • ProductsThese plugins will help you manage your WooCommerce products. Here you will find the plugins to import and update products from XML or CSV files. Then you can change the product unit of measure, show the lowest price in the last 30 days (Omnibus Directive), or let customers name the product price!
          • Flexible Product Fields
          • Dropshipping Import Products
          • Dropshipping FTP Import Products
          • Dropshipping Export Products
          • Custom Price
          • WP Desk Omnibus
          • Flexible Quantity Calculator
          • Dropshipping Orders Export
        • MarketingPromote your store online. Add products from your shop to price comparison websites directly from WooCommerce. Acquire new customers and communicate with your existing ones. Build a customer base and communicate with clients using one of the most effective marketing tools, namely e-mail marketing. Check out our promotional tools!
          • Flexible Pricing
          • Flexible Wishlist - Analytics & Emails
          • OLX WooCommerce
          • Flexible PDF Coupons
          • ShopMagic
          • Flexible Invoices
  • Bundle🔥
  • WP Desk Care
  • Support
  • Blog
  • My Account
  • 0

More results

WooCommerce Conditional Logic, Custom Fields & Product Options in one plugin!

Plugin Tutorials, WooCommerce product fields

Maciej Swoboda3 minutes readUpdated: 2018-03-27Updated: 2025-08-20
blog category heading image

Last year we released our plugin for adding product options, custom fields, and customizing your WooCommerce products. Many customers asked us to add conditional logic to the WooCommerce product custom fields & options. I am happy to announce that WooCommerce conditional logic is available in the PRO version of the plugin both for simple products and variations.

Do your WooCommerce products lack more options and custom fields? Have you tried adding more information about your products? But the pages look either too long or always the same.

Today, I will show you how to add custom fields to your WooCommerce products to enrich product options. See how to let customers benefit from custom fields, product options, and additional services dynamically using conditional logic, pricing . Let's customize the simple products and offer beautiful product variations in WooCommerce in minutes!

💡 There is also a free version of the plugin that allows adding product custom fields. You may find most fields available in the core version of the extension.
Add custom fields to the WooCommerce product page
Add custom fields and new options to the WooCommerce product page

Contents

  • WooCommerce product options with conditional logic examples
    • WooCommerce catering ordering
    • WooCommerce insurance for products
  • WooCommerce conditional logic - how does it work?
  • WooCommerce product conditions - how to use it in your store?
    • WooCommerce conditional logic plugin
    • Flexible Product Fields WooCommerce
    • The custom fields - configuration
  • Summary & more about the plugin
    • Related Articles
  • Take Control of WooCommerce Edit Checkout Fields Using Smart Conditional Logic
  • WooCommerce Extra Product Options - power up your products with one plugin
  • WooCommerce advanced custom fields: a FREE product & checkout customizer
  • How to add a custom product field in WooCommerce? (free plugin)
  • WooCommerce Product Configurator with a free WordPress plugin!

WooCommerce product options with conditional logic examples

The most popular products sold in online stores are standard physical products. WooCommerce and other e-commerce platforms are well-made for them. This doesn't mean they fit all needs. Sometimes stores need something more than this!

💡 Product options let customers customize the product. An add-on can be a checkbox, a select box, or a text area to name a few custom product fields. Of course, it all depends on a store's needs. These add-ons could be used for product engraving, cross-selling insurance, or a gift-wrapping feature.

👉🏼 How about some examples?

WooCommerce catering ordering

Healthy eating is trendy these days. People want to eat well, but often they don't have time to prepare meals for themselves. Counting calories, making lists of meals, shopping, and cooking. Keeping a diet all by yourself is a difficult day-to-day task.

Yet, there is a simple solution to this problem: food boxes or personal catering.

Look on the product page below ↓ : a date field (catering service start date), a select field (tip), and a checkbox to include or exclude some ingredients from the diet.

Customize the WooCommerce simple products and variations with custom fields, product options, and conditional logic to show fields dynamically
Customize the WooCommerce simple products and variations with custom fields, product options, and conditional logic to show fields dynamically
💡 All the extra add-ons (custom fields) that you see on the WooCommerce product page below were added using the plugin Flexible Product Fields. The plugin lets you customize the design and product options both for WooCommerce simple products and variations.
👉🏼 You may also configure all custom fields (new options) using conditional logic for WooCommerce products (simple and variable products). I'll show you how later in this article.

WooCommerce insurance for products

Another great example is insurance. Stores willingly cross-sell insurance for the products they offer. It provides stores with an additional profit as they are the middlemen of insurance companies.

 WooCommerce conditional logic
WooCommerce Product Insurance - product page

👉🏼 As you can see, all you need in this example is a simple dropdown field (Select field) with new product options!

WooCommerce conditional logic - how does it work?

Conditional logic means one product option depends on another. So you can build dynamic product pages with multiple options, features, and add-ons based on customer choices!

For example, you want a gift message option in your store. You need a text field where customers can provide a message to add to a product they want to gift.

A text field consumes much more space on the product page than any other field. You can hide it over a checkbox then. How?

Look at the animation below:

WooCommerce flexible product options
Gift message field added with Flexible Product Fields

The conditional logic for that product field is simple.

When a customer marks a gift message checkbox, then a text field shows up.

This is probably the easiest example of a WooCommerce conditional product options feature. Of course, you can do much more. Imagination is your only limit :)

One more thing! You can use conditional logic for product options and custom fields both for WooCommerce simple products and variations!

WooCommerce product conditions - how to use it in your store?

Let's use the example from the animation above⬆️. I'll show you how to configure fields to work that way. Don't worry, it's super easy!

WooCommerce conditional logic plugin

👉🏼 First things first. You need the plugin I mentioned above. You can start with the free version too! Just click the link above!

🔽 🔽 Download the plugin for free at the link below 🔽 🔽 

Flexible Product Fields WooCommerce

WooCommerce product variations, custom fields, and conditional logic. Get the plugin and add 18 different product add-ons, conditional logic, and pricing.

Download for free or Go to WordPress.org
WP Desk
10,000+ Active Installations
Last Updated: 2026-08-20
Works with WooCommerce 10.7 - 11.1
💡 Note that you need a PRO version if you want to configure the WooCommerce conditional product options. The free version doesn't support conditional logic but I encourage you to try it out before you buy!
💡 You can read more about the WooCommerce free product configurator and configurable products.

👉🏼 Let's get back to the configuration.

Fields like these in the example are really easy to set up. You need to add a checkbox field and then you need to activate conditional logic (PRO) in the gift message field.

The custom fields - configuration

  1. Add a new fields group

    First, you will have to add a new fields group and assign it to a specific product, category, or tag. You can also choose to assign it to all products, as I did.

  2. Choose the custom field

    Then, you will have to choose the field you want to add first. Let it be the checkbox field. You can find it among the Option fields.

    WooCommerce conditional product options - adding extra add-ons
    First, add a checkbox field
  3. Add the checkbox field

    This will be the field, which will launch the conditional logic. But it has to work together with another field. Let's add the Textarea field.

    WooCommerce variations conditional logic - adding a textarea field
    Now add a Textarea field to proceed with the conditional logic

    💡 You can also set the character limit in the Advanced tab.
  4. Conditional logic and pricing (PRO)

    Now, we can set the conditional logic and pricing.

    💡 Conditional logic and pricing are available in the PRO version of the plugin.

    Follow these steps:

    WooCommerce conditional fields
    Go to the Conditional logic tab

    I have also added extra pricing if the checkbox field is checked by the customer:

    WooCommerce product add-ons conditional logic configuration with extra pricing
    Add extra pricing
  5. WooCommerce custom product options with conditional logic

    Look at the final effect. This is how your customers will see the conditional logic we have just set:

    WooCommerce conditional product options
    Conditional logic with extra pricing on the product page

➡️I summed the configuration steps for you:⬅️

  1. You need to create a checkbox field.
  2. The checkbox field does not have a conditional logic option set. It has to work together with another field.
  3. Next, you need to create a text area field.
  4. This field must have a conditional logic option set.
  5. The rule is to show this field if the gift message field is checked.

That's it! Simple, right?😉

Please remember that you can use WooCommerce conditional product options with conditional logic both for simple products and variations!

Summary & more about the plugin

In this article, you have learned how to configure WooCommerce product options and custom fields, and use conditional logic to show fields dynamically. If you need any more help, just let me know in the comments section below.

Are you ready to use product conditional logic in your store?

See all features of the PRO version and read the plugin documentation!

Flexible Product Fields FREE →

You can customize the WooCommerce checkout fields with conditional logic too!

Related Articles

WooCommerce conditional checkout fields

Take Control of WooCommerce Edit Checkout Fields Using Smart Conditional Logic

In this guide, you'll learn how to configure conditional logic for checkout fields in your WooCommerce store. I'll guide you step by step through the ...
WooCommerce extra product options with custom fields

WooCommerce Extra Product Options - power up your products with one plugin

In this guide, I'll show you how to configure WooCommerce extra product options, add custom fields, and show multiple options with a FREE plugin! If y...
Advanced custom product fields for WooCommerce products

WooCommerce advanced custom fields: a FREE product & checkout customizer

Are you looking for a way to easily customize your WooCommerce? Let's build advanced product and checkout pages with custom fields in WooCommerce with...
Custom field product WooCommerce

How to add a custom product field in WooCommerce? (free plugin)

Let's see how to add a custom product field in WooCommerce with a free product designer plugin! Boost your sales by letting customers personalize prod...
WooCommerce free product configurator and configurable products - free WordPress plugin

WooCommerce Product Configurator with a free WordPress plugin!

Did you know you can sell products in WordPress using WooCommerce - a free plugin? What's more, you may also let customers decide about the features w...

3 minutes read32645 views

Reader Interactions

Comments

  1. Limbergh Herrera says

    2018-10-31 at 20:56

    Hello, I think the plugin is great, but I want to ask if I serve for the following, my products are made of 2 materials, I want to choose the first material to activate the second condition that is the measure, those measures are unique to that material, and if I choose the Other material change the measures that this material has attached, once chosen both conditions gives us the price, is it possible?

    Reply
  2. Limbergh Herrera says

    2018-10-31 at 20:57

    https://uploads.disquscdn.com/images/d5cb6e7267501c4a33ce06e4b433481ac199dadb28772addc5544d2a56e2699a.jpg

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Maciej Swoboda

...

Powered by WP Desk

WP Desk brings you great WooCommerce plugins. We strive to save your time and money by speeding up your processes. Use our plugins to build a better store. Awesome support included in the package.

Premium WooCommerce Plugins →
WP Desk › Blog › WooCommerce products › WooCommerce product fields › WooCommerce Conditional Logic, Custom Fields & Product Options in one plugin!

Primary Sidebar

Contents

  • WooCommerce product options with conditional logic examples
    • WooCommerce catering ordering
    • WooCommerce insurance for products
  • WooCommerce conditional logic – how does it work?
  • WooCommerce product conditions – how to use it in your store?
    • WooCommerce conditional logic plugin
    • Flexible Product Fields WooCommerce
    • The custom fields – configuration
  • Summary & more about the plugin

Flexible Product Fields PRO WooCommerce £59

WooCommerce product variations, custom fields, and conditional logic. Get the plugin and add 18 different product add-ons, conditional logic, and pricing.

Add to cart or View Details
WP Desk
10,000+ Active Installations
Last Updated: 2026-08-19
Works with WooCommerce 10.7 - 11.1

Stay updated on our how-to articles

WP Desk news, WooCommerce tips, promo codes - right to your inbox.

By entering your e-mail, you agree to our Terms & Conditions and Privacy Policy.

By entering your e-mail, you agree to our Terms & Conditions and Privacy Policy.

Footer

WP Desk - WooCommerce Plugins

At WP Desk we create great WooCommerce plugins with awesome support. Save time and money with our e-commerce solutions. See how we can help you improve your e-store →

Secured by Comodo

WP Desk

  • About us
  • Giving Back
  • Blog
  • Get Support
  • Contact us

Products

  • Premium Plugins
  • WP Desk Care
  • Documentation
  • WooCommerce Invoices
  • Email Marketing
  • PDF Coupons

Legal

  • Terms & Conditions
  • Refund Policy
  • Support Policy
  • Privacy Policy

© 2026 WP Desk

We value your privacy

We use necessary cookies to make our site work. We'd also like to set additional cookies to understand site usage, enhance your browsing experience, and serve personalized ads or content. By clicking ‘Accept All,’ you consent to our use of additional cookies.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}