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!
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 DetailsTable of contents
- WooCommerce product options with conditional logic examples
- WooCommerce conditional logic - how does it work?
- Custom product fields with conditional logic - A step-by-step guide
- Summary & more about the 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!
👉🏼 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.
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 DetailsWooCommerce 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.
👉🏼 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:
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 :)
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!
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👉🏼 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
-
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.
-
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.
-
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.
💡 You can also set the character limit in the Advanced tab. -
Conditional logic and pricing (PRO)
Now, we can set the conditional logic and pricing.
Follow these steps:
I have also added extra pricing if the checkbox field is checked by the customer:
-
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:
➡️I summed the configuration steps for you:⬅️
- You need to create a checkbox field.
- The checkbox field does not have a conditional logic option set. It has to work together with another field.
- Next, you need to create a text area field.
- This field must have a conditional logic option set.
- The rule is to show this field if the gift message field is checked.
That's it! Simple, right?😉
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 →
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