Days
Hours
Minutes
Seconds

Conditional Logic for WooCommerce Product Add-Ons

Use coupon BFCMRB20 BFCMRB20

Yearly payments to receive plugin updates & support

Pay once and get support and update forever

  • 1 Site

    One year of support and updates

    $49.99
  • 3 Sites

    One year of support and updates for each plugin copy

    $99.99
  • 25 Sites

    One year of support and updates for each plugin copy

    $459.99
  • 1 Site

    Support and updates are not time-limited

    $149.99
  • 3 Sites

    Support and updates are not time-limited for each plugin copy

    $259.99
  • 25 Sites

    Support and updates are not time-limited for each plugin copy

    $999.99
OR

Features

Conditions to Add-Ons fields

You can easily create rules to show or hide WooCommerce Product Add-ons fields based on what the user selects or writes in other fields.

Works with any field type

You can apply conditional logic to any field of Product Add-ons, and each field can have its own rules.

Flexible conditions

Depending on the field type, you can use various types of conditions such as "Is checked", "Text contains", "Is greater than", based on Any or All requirements, etc.

Show fields only for specific variations

Conditions to show field only when one or few variations are selected. Make add-on fields specific for some variations.

Available at both general add-ons section and product level

You can apply conditional logic to add-ons fields at both the general add-ons section and the product level.

Works with WooCommerce Product Add-Ons plugin

To use Conditional Logic for WooCommerce Product Add-Ons plugin, you need to have the WooCommerce Product Add-Ons plugin installed and configured.

Use cases

Customization options for different product variants

Let’s say you own a clothing brand that offers customers the option to customize their own shirts. Using WooCommerce Product Add-Ons with Conditional Logic, you can create a product page that allows customers to select different options for fabric, color, size, and style, and then show/hide relevant add-ons fields based on their selections. For example, when a customer selects “slim fit” as the style, you can use conditional logic to show add-ons fields that are relevant to slim-fit shirts, such as “tapered cuffs” or “narrow collar”. Similarly, when a customer selects “regular fit” as the style, you can use conditional logic to show add-ons fields that are relevant to regular-fit shirts, such as “button-down collar” or “standard cuffs”.

Conditional pricing based on add-ons

Imagine an online store that specializes in custom gaming PCs. They offer a wide range of options for customers to choose from, such as GPUs, CPUs, cases, RAM, storage, and more. For example, if the customer chooses an NVIDIA RTX 3080 GPU, the system can show compatible cooling options or offer an upgrade to a higher wattage power supply to accommodate the GPU’s power requirements. And if the customer chooses a large-capacity SSD (solid-state drive), the system can suggest additional storage accessories such as cable brackets or a PCIe expansion card for extra M.2 slots. 

By utilizing Conditional Logic for Product Add-ons in the context of building custom gaming PCs, the online store can provide a seamless and personalized experience for customers. The available options and add-ons dynamically adjust based on the components they select, ensuring compatibility and offering relevant choices.

Gift wrapping options based on customer's selection

A business may offer gift wrapping options for their products, but only for certain types of products or on customer request. In this case, the business may want to show the gift wrapping add-on field only for eligible products or when the customer selects the gift wrapping option at checkout. They could use Conditional Logic to show the gift wrapping add-on field only when the customer has selected the eligible product(s) or checked the gift wrapping option, and hide the field otherwise to avoid confusion or unnecessary steps in the checkout process. This can help the business streamline the checkout experience and increase the chances of a successful sale, as customers who are interested in gift wrapping options are more likely to complete the purchase if they can easily find and select the add-on during checkout.

Menu planning and selling extras for food industry

You can create a product page that allows customers to select the food item they want to order, and then show/hide relevant add-ons fields based on their selections. For example, when a customer selects a burger as the food item they want to order, you can use conditional logic to show add-ons fields that are relevant to burgers, such as “burger patty type”, “cheese option”, and “toppings”. Then, when the customer selects the option to add fries as a side, you can use conditional logic to show add-ons fields that are relevant to sides, such as “fry size” and “fry seasoning”. You can also use conditional logic to show add-ons fields that are relevant to the type of drink. For example, when a customer selects “soda” as the drink they want to order, you can use conditional logic to show add-ons fields that are relevant to sodas, such as “soda flavor” and “soda size”.

About Plugin

The Conditional Logic for WooCommerce Product Add-Ons is an add-on extension that enables you to configure rules for the WooCommerce Product Add-Ons fields based on customer choices or entries in other fields, either to display or conceal them. It is compatible with any field of Product Add-ons, and each field can have its own set of rules. You can have an unlimited number of rules, and you can choose to show/hide the field if Any or All of the conditions are met.

Those are the types of conditions you can apply for each type of field:

Multiple choice and Checkboxes types can be conditioned as: 

  • Is checked – when the customer selects the needed option 
  • Is not checked – when the customer selects or checks anything besides the specified option 

Short Text and Long Text have the following condition types: 

  • Is – text entered by a customer fully complies with your value 
  • Is not – text entered by a customer is not the same as your value 
  • Is empty – the customer does not enter any text 
  • Is not empty – the customer enters any text 
  • Text contains – text entered by the customer contains something specific anywhere in the text
  • Text does not contain – text entered by the customer does not contain what you specified anywhere in the text
  • Text starts with – text entered by the customer starts with anything specific
  • Text ends with – text entered by the customer ends with anything specific 

File upload field type may have the following logic: 

  • Is selected – if the customer has chosen a file to upload 
  • Is not selected – if the customer has not chosen a file to upload yet 

Customer Defined Price and Quantity are numeric types of fields, and their conditions may be: 

  • Is – price entered by customer or selected quantity is equal to your value
  • Is not – price entered by customer or quantity is anything besides the value you set 
  • Is greater than – price entered by customer or quantity is greater than the value
  • Is less than – price entered by customer or quantity is less than the value
  • Is greater than or equal – price entered by customer or quantity is greater than or equal to the value  
  • Is less than or equal – price entered by customer or quantity is less than or equal to the value

Those conditions are available to you in the general add-ons section as well as on the product level. 

Screenshots

We know what we're doing

We designed tons of plugins and custom projects, so we know how to make plugins fit your needs, look simple, and don’t harm site performance.

No bullshit in support

We don’t outsource support to any useless ‘call-centers.’ You get assistance from plugin developers first hand.

Clean code – our top priority

Well structured and properly commented clean code – is our top priority. So you can easily understand it and customize the plugin w/o headache.