How can I add conditions ?

On each option and preview layer, you can add conditions to only show the option when the conditions are met. The conditions are checked on every option change.

Click on "Add condition" and select type of condition you want check:

Eye icon

The eye icon is updated to indicate if an option is currently visible or not. Clicking on the eye icon will temporarily show/hide it. The eye icon is only used for testing purposes, it is not used control the visibility on the product page.

When the conditions are not met, the eye icon is crossed out:

Combining conditions

If you have more than one condition, they are combined using the AND operator:

Select "any" to change the conditions to be evaluated using the OR operator:


Variant Conditions

If your product has multiple variants, you can target the current variant selection using one of the following condition types:

What happens to a hidden option's value

A condition controls whether an option is shown. It does not clear the option's value, and the value is treated differently depending on what is reading it.

Conditions still see it

A hidden option is not empty. It keeps its stored default value, and any condition that references that option keeps being evaluated against that default.

This matters most with the any (OR) operator. If a preview layer is shown when either of two options has a given value, and one of those options is hidden on the current variant but still sits on its default, the OR stays permanently true and the layer never disappears.

Two ways to fix it:

  • Combine the option condition with a variant condition using all (AND), so the rule only applies on the variant where that option is actually shown.
  • Remove the default value from options that are specific to one variant, so a hidden option has nothing to match.

The order does not see it

Only options that are visible when the product is added to the cart become line item properties. A condition-hidden option is not written to the order, even though it still has a value in the configuration. If you need a value to always reach the order, do not hide it with a condition.

Options do not read each other

Conditions apply to a whole option, not to individual values, so a common setup is one option per variant group, for example a separate colour option for each size, each shown by its own variant condition.

Those options are independent of one another. Each one keeps its own default selected value, and selecting a value in one does not select it in the others. When the shopper changes the variant, a different option is shown, still on its own default, which looks as though the previous selection was lost.

There is no setting that mirrors a selected value from one option to another. A shared options list shares the list of values between options, not the current selection.

If keeping the shopper's choice across variants matters more than per-variant values, use a single option for all variants rather than one option per variant group.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.