• Skip to primary navigation
  • Skip to main content
  • Skip to footer
Essential Premium WooCommerce Plugins - WP Desk
  • Plugins
  • Bundle
  • Support
  • Blog
  • My Account
  • 0

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.

Maciej Swoboda

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

Updated: February 27, 2023 / Marketing Tips, Plugin Tutorials

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. Let's customize the simple products and offer beautiful product variations in WooCommerce in minutes!

Table of contents

  • WooCommerce product options with conditional logic
  • WooCommerce product options with conditional logic
  • Custom product fields with condition logic - A step-by-step guide
  • Summary & more about the plugin

WooCommerce product options with conditional logic

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.

Flexible Product Fields PRO WooCommerce £59

WooCommerce product variations conditional logic made simple. 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: 2023-03-15
Works with WooCommerce 7.1 - 7.5.x
👉🏼 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 product options with conditional logic

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 conditional 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 conditional logic made simple. 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: 2023-03-13
Works with WooCommerce 7.1 - 7.5.x
💡 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!

👉🏼 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 PRO WooCommerce £59

WooCommerce product variations conditional logic made simple. 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: 2023-03-15
Works with WooCommerce 7.1 - 7.5.x

Related to the WooCommerce Product Add-ons Conditional Logic

  • WooCommerce product text fields (Flexible Product Fields)

    customize woocommerce product text fields
    Product page text fields. Customize your product page with additional text fields, which you can find in the Flexible Product Fields plugin.

  • WooCommerce time picker (Flexible Product Fields)

    WooCommerce delivery time
    Delivery time picker. In this article we give you some advice on how to show a delivery time picker on your WooCommerce product page.

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

4 minutes read15823 views

Maciej Swoboda

Founder of WP Desk, in love with WordPress since 2006. He believes in the power of WP community, speaks at WordCamps around the world and helps people build better businesses with WooCommerce.

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 →

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.

WP Desk › Marketing Tips › WooCommerce Conditional Logic, Custom Fields & Product Options in one plugin!

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
  • Contact us

Products

  • Premium Plugins
  • Get Support
  • WooCommerce Invoices
  • Email Marketing
  • Octolize

Legal

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

© 2023 WP Desk