Help center

Learn how to sell online with Checkout Page

“is not empty” conditional logic for product variants

“is not empty” conditional logic for product variants

This help article will show you how to make one variant option depend on another using the “is not 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 not empty” conditional logic?

You can use the “is not empty” conditional logic to display specific options when the previous selection is not empty.


Example: When selling a travel guide, you can show map bundles as upsells after selecting a travel guide for a specific destination. These upsells will be hidden until your customer makes a choice for the first variant.

To apply the “is not empty” conditional logic for displaying the Map bundle upsells product variant:

Show/hide logic: 

  • Variant: Travel guides

  • Conditional statement:is not 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


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



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


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


6. Select the respective Variant

  • In this case, Map bundle upsells variant will only be shown if the selection for Travel guides is not empty


7. Click Save and test your checkout!

Learn more about conditional logic for product variants here

Have a question about
Checkout Page?

Start selling in minutes with our no-code checkout page builder.

Create branded, custom checkout pages and increase revenue with one-click upsells and order bumps.

Whether on your website or in your sales funnel, our simple checkout process boosts sales.

Use cases

2023 © Checkout Page. All rights reserved.