Help center

Learn how to sell online with Checkout Page

“is empty” conditional logic for product variants

“is empty” conditional logic for product variants

This help article will show you how to make one variant option depend on another using the “is empty” conditional logic.

Conditional logic for product variants lets you decide which options to display based on your customers’ choices.

In other words, the choices for subsequent product variants will be based on another variant’s selection.

What is “is empty” conditional logic?

You can use the “is empty” conditional logic to show additional options when a pre-selected choice is unselected or empty.

image-e8d835.png

Example: When selling a service package, you can pre-select Premium support as an add-on by default. If your customers unselect this add-on, you can choose to display a cheaper Advanced support option.

To apply the “is empty” conditional logic for displaying the Advanced support product variant:

Show/hide logic: 

  • Variant: Support upsell

  • Conditional statement:is empty

Open example checkout

How to set up conditional logic for product variants?

  1. From your Checkout Page dashboard, click on your checkout and navigate to the Variants tab

  2. Click Add variant and set up at least two product variants

image-e950ec.png

3. Click on a variant that you would like to make conditional and scroll down to open the Settings section

image-18343c.png

image-d7f4d7.png

4. Check the option for Show/hide logic to activate the conditional statements for this variant

image-f516f8.png

5. Choose the condition you want to apply, in this case: “is empty“ 

image-c90fc1.png

6. Select the respective Variant

  • In this case, Advanced support variant will only be shown if the selection for Support upsell is empty

image-8cbab1.png

7. Click Save and test your checkout!

Learn more about conditional logic for product variants here


Have a question about
Checkout Page?