Conditional Logic Between Aris Options and Shopify Native Variants
Overview#
Feature Type: Building Options / Display Logic
Live Demo: View Live Demo on Aris Demo Store
1. Feature Overview & Merchant Use Cases#
Basic conditional logic connects two options that you create inside Aris Product Options. Conditional logic with Shopify variants goes one step further: it shows, hides, or disables an Aris option based on the native Shopify variant the customer selects, such as Size, Color, or Material.
You do not need to duplicate your variant structure inside the app. Extra customization fields simply appear when the shopper picks the variant that needs them.
Common Merchant Scenarios:
Size-Specific Customization: Show a "Custom Inseam Length" field only when the customer selects the Tailored size variant.
Material-Specific Add-ons: Show an "Engraving Font" option only for the 18K Solid Gold or Sterling Silver variant.
Gift Editions: Show a "Greeting Card Message" box and "Ribbon Color" swatches only for the Gift Box Edition variant.
Excluded Variants: Hide personalization options when the customer selects a Refill or Digital variant.
2. Storefront Experience & Live Demo#
You can test this behavior on our demo product:
Live Demo Link: https://demo-po.arisify.io/products/conditional-logic
How It Works for Shoppers:
Default State: The product page loads with its normal Shopify variant picker. Aris options that depend on a specific variant stay hidden.
Switching Variants: When the customer selects a different variant (for example, from Medium to Large), the matching Aris options appear right away.
Switching Back: If the customer returns to a variant that does not match the rule, the Aris option is hidden again. Anything the customer entered in that option is cleared and is not added to the cart.
3. Step-by-Step Setup Guide in Shopify Admin#
The screenshots below use a Color swatch option in an Option Set named Shirt Colors. The swatch is set to show only when the customer selects the Shopify variant Large.
Step 1: Create the Option Set and Add a Color Swatch
Go to Shopify Admin > Apps > Aris Product Options.
Click Create Option Set and name it (for example,
Shirt Colors), or open an existing Option Set.Under 1 Build options, click Add option.
In the Add Options window, under Swatches, tick Color swatch, then click Select.

Step 2: Open the Option Settings and Find Conditional Logic
Click the Color swatch option in the options list to open its settings.
Add your swatch values (for example,
Red,Blue + White, andBlue) and set their colors.Scroll down past the option values and the Price display type and Option URL settings to the Conditional logic section.
Click Create conditional logic.

Step 3: Select "Shopify variant" as the Controlling Source
Set the rule sentence to Show this option if All of the following match. You can also choose Hide or Disable, and Any instead of All.
Click the Select option... field.
Choose Shopify variant at the top of the list.

Step 4: Set the Operator and Variant Value
In the operator dropdown, choose how to match the variant:
is equal to: the variant title must match exactly (for example,
Large).contains: the variant title only needs to include your text (for example,
LargeinsideNavy / Large).
In the value field, type the variant name exactly as it appears in Shopify (for example,
Large).To trigger the option for more than one variant, click the plus icon (
+) to add another condition and switch the match mode to Any.

Step 5: Assign the Option Set to Your Product and Save
Scroll to the top and click 2 Assign products in the Setup flow.
Turn on Manual and choose the Shopify product that has the variants you used in Step 4. You can also use Automated to assign products by conditions.
Click Save in the Unsaved changes bar at the top of the page.

4. Operator Reference for Shopify Variants#
Operator | When to Use | Example |
|---|---|---|
is equal to | Products with a single variant option, where the variant title is one word or phrase. | Variant title is exactly |
contains | Products with several variant options (for example, Size + Color). | Variant title |
does not contains | Show the option for every variant except one. | Hide when the variant title contains |
starts with | Variant titles that begin with a tier or bundle name. | Variant title starts with |
ends with | Variant titles that end with a format or packaging label. | Variant title ends with |
has any value | Show the option whenever any variant is selected. | Any variant is active on the page. |
5. Pro Tips & Common Pitfalls#
Important — Variant Titles with Several Options
When a product has more than one variant option (for example, Size and Color), Shopify combines them into one variant title such asSmall / Blue. In this case, use contains (for example, containsBlue) instead of is equal to, so the rule works no matter which size is paired with that color.
Important — Assign the Option Set to the Right Product
The rule can only match variants that exist on the product. Make sure the Option Set is assigned (in 2 Assign products) to a product that actually has the variant names used in your rule. Otherwise, the rule never matches.
Important — Variant Names Are Case-Sensitive
The rule compares the variant title letter by letter, including uppercase and lowercase. If your variant isLarge, a rule withlargewill not match.
Warning — Renaming Variants in Shopify
If you rename a variant in Shopify Admin (for example, fromLtoLarge), update the value in your Aris rule to match the new name.
Pro Tip — Test on the Storefront
After saving, open the product on your storefront and switch between variants to confirm the option appears and disappears as expected.
6. Frequently Asked Questions (FAQ)#
Q1: Can I combine a Shopify variant condition with a condition on another Aris option?
Yes. Add several condition rows to the same rule. For example, with match mode All: show Option C only if Shopify variant contains Gold and the Aris option Add Diamond is equal to Yes.
Q2: What happens if the customer selects an out-of-stock variant?
If your theme allows customers to select it, the rule is still checked against that variant's title. To stop orders for out-of-stock variants, use Shopify's inventory settings.
Q3: Does this work with any variant picker style?
Yes. The rule is based on the variant the customer selects, whether your theme shows variants as a dropdown, buttons, or color swatches.
Q4: Why doesn't my option appear when I select the right variant?
Check that the value is spelled exactly like the variant title in Shopify (including uppercase and lowercase), that you used contains for products with several variant options, and that the Option Set is assigned to this product.