Conditional Logic for Woo Product Add-ons

plugin banner

Show or hide certain fields of the WooCommerce Product Addons based on other fields' values…

Author:Meow Crew (profile at wordpress.org)
WordPress version required:4.2
WordPress version tested:6.4.0
Plugin version:2.1.3
Added to WordPress repository:27-01-2023
Last updated:03-06-2024
Rating, %:74
Rated by:3
Plugin URI:https://meow-crew.com/plugin/conditional-logi...
Total downloads:4 520
Active installs:300+
plugin download
Click to start download

Conditional Logic for WooCommerce Product Add-Ons is an extension to the official WooCommerce Product Add-Ons plugin. With the help of this extension, you can set up conditional logic for Add-ons fields to either show or hide them based on what the user chooses, write or upload in other fields. Also you can determine to display add-ons fields only for specific product variations.

Important links:
Premium Version Page | Demo for Plugin Testing | Plugin Documentation

Conditional Logic is designed to work with any field of Product Add-ons, and each field can have its own rules. Fields for which you set conditions can be shown or hidden if Any or All requirements are met. Conditions – set of rules of what the user (your customer) should choose, write or define in other fields. Let’s say you offer two types of Gift Wrap options (Free and paid), and you’d like to offer an ‘Add a message’ service to the Paid option only – then you set the ‘Short text’ field to be visible only when the customer chose the Paid option.
In the Premium version of the plugin you can also add conditions to show Product Add-ons field only when user select specific Product Variation. This feature can work alone or you can combine it with another conditions based on other add-ons fields output.

Types of conditions depend on the kind of field you use as the condition.

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.

Note: you should have WooCommerce Product Add-Ons plugin installed and configured.
You can find detailed instructions on how to hide and show WooCommerce Product Add-On options here in plugin’s documentation


Screenshots
FAQ
ChangeLog