Why isn't a condition showing or hiding an option?

A condition shows or hides an option based on rules you set. When an option appears or disappears at the wrong time, the cause is usually the rule itself, the customer's login state, or how several rules combine. This article lists what to check.

Check the condition in the editor

Open the option in its option set and find its condition line. An option without a condition says Always shown. Click Add condition to create one. A condition has these parts:

Part What it does
Show or Hide Whether the option is shown or hidden when the rules match.
Match When there are several rules, whether all of them or any of them must match.
Rule source Another option, Shopify variant, or Customer tag.
Rule value The value the rule compares against.

The editor warns you about rules that cannot work. A banner titled This option would never show or This option would never be hidden means the rules contradict each other, so change them.

Test it with the preview

The Preview panel on the right of the editor has two modes, Select and Try it. Switch to Try it to use the options as a customer would. Nothing goes to a cart. Pick a Product and a Variant to test rules that depend on a variant. When your set uses customer tags, a Customer menu appears with Not logged in and one entry for each tag, such as Tagged wholesale.

The editor Preview in Try it mode, with the note that nothing goes to a cart, the Product menu and the options as a customer uses them

Common causes

Customer tag conditions and logged-out customers

A Customer tag rule needs a logged-in customer who carries the tag. A customer who is not logged in has no tags. The editor says so on the condition: "Customers who aren't logged in have no tags", followed by whether the option shows or stays hidden for them. Ask customers to log in, or test in a window where you are logged in as a customer with the tag.

Tags are checked in the storefront and in Shopify's checkout function. They are not sent to the app's servers. Customer tags cannot contain commas, quotes or backslashes. Your Active option sets can name up to 100 customer tags in total.

A rule was removed with another option

When you delete an option that other options' rules depend on, those rules are removed with it. The editor shows the note "A rule was removed with ..." on the affected option. If that was the option's only rule, it goes back to Always shown. Add the condition again.

A variant rule does not match

A Shopify variant rule uses the variant names Shopify gives, for example Black / M. Choose the variant from the list, or type the name exactly as it appears in Shopify.

Several rules and Match

With more than one rule, Match decides whether all rules must be true or only one of them. A new condition starts with all rules required. Check which choice you set.

The set is not live

A condition only works when the set is live. If the option does not show at all, see Why aren't options showing on my product page?.

[!INFO] Use Try it in the preview before you check the live product page. It lets you switch between Not logged in and each tag in seconds.

Related articles

← Why isn't the add-on price added in the cart? Why can't customers upload a file? →