This app allows you to create rules to dynamically show or hide any product options based on the value from other options.
Note: This feature is available for options that are placed in the second position or higher.
Creating conditional logic options
Steps to manage
- In option set, choose an option to apply this feature.
- In the option configuration sidebar, tick on the Conditional Logic Options checkbox.
- Add conditions to show/hide this product option (see the Adding logic conditions section below).
- Click Save to finish.
Adding logic conditions
You can add one or more conditions for a product option. You can force this product option to show or hide only when all conditions or any condition is satisfied.
– Show: When the logic condition is satisfied, the current element is displayed, otherwise, it is hidden.
– Hide: When the logic condition is satisfied, the current element is hidden, otherwise, it is displayed.
You can choose any conditional product options. You should only remember that those conditional options have to be placed above the current product option in the option set.
Tutorial videos
This is an example to use the conditional logic options function for your reference:
Which are conditional logic options offered?
You can select from the following options to control how a product option needs to match the condition value that you enter.
is equal to | The option value needs to match exactly the whole value you enter. |
is not equal to | The option value can’t match the value you enter. |
starts with | The beginning of the option values matches the value you enter. |
ends with | The end of the option values matches the value you enter. |
contains | The option value contains the value you enter. |
does not contain | The option value doesn’t contain the value you enter. |
is greater than | The option value is greater than the value you enter. |
is less than | The option value is less than the value you enter. |
has file | The File element is uploaded file |
no file | The File element hasn’t yet uploaded the file |
Which element are conditional logic options applied for?
Below is the corresponding conditional logic options according to each element
Element label | Corresponding conditional logic options |
Text | is equal to/is not equal to; starts with/ends with; contains/does not contain |
Textarea | is equal to/is not equal to; starts with/ends with; contains/does not contain |
Number | is equal to/is not equal to; starts with/ends with; contains/does not contain; is greater than/is less than |
Date time | is equal to/is not equal to; starts with/ends with; contains/does not contain; is greater than/is less than |
File | has file/no file |
Select | is equal to/is not equal to |
is equal to/is not equal to; contains/does not contain | |
Checkbox | is equal to/is not equal to; contains/does not contain |
Radio Button | is equal to/is not equal to |
Button | is equal to/is not equal to; contains/does not contain |
Color Swatch | is equal to/is not equal to; contains/does not contain |
Image swatch | is equal to/is not equal to; contains/does not contain |
What is the value?
Below is three kinds of value that are used for conditional logic options according to the kind of element
- Text/Textarea/Number/Datetime: the value is the input that you enter when setting the conditional logic options
- File: you no need to enter a value and there will only be two options: has file and no file respectively uploaded file and not uploaded file
- Select/Checkbox/Radio Button/Button/Color Swatch/Image Swatch: the value is the selected option value