Skip to content
On this page
Reference Reference 2 min read Updated Sep 28, 2026

Visibility conditions reference

In short

Conditions decide who sees a block, based on cart, products, customer, address, shipping, payment, discounts, attributes or metafields. A block shows when any one of its conditions matches.

✓ Applies to

  • Advanced and Deluxe plans
  • Block visibility, under Block Visibility on each block
  • Checkout rules use the same condition list

✕ Doesn't apply to

  • Single block types inside a block. Conditions apply to the whole block
Just want a block for certain products? Follow the how-to →
The block shows when any one condition matches

How matching works

SetupResult
Toggle offAlways shows
On, no conditionsAlways shows
On, with conditionsShows when any one matches
Operator left on ”-“That condition never matches

Conditions update live. Change the cart or address and the block appears or hides without a reload.

i

Conditions apply to the whole block. For different content per audience, make one block each and place each in its own Custom Block.

Operators

TypeOperatorsWatch out
NumberEqual, Not Equal, Greater/Less Than (or Equal)Blank never matches
TextEqual, Not Equal, Contains, Not Contains, In list, Not In list, Length, Empty, Match regexCase-sensitive. Lists: A,B,C, no spaces
ListIn this list, Not in this list—

Conditions on lists (discount codes, titles, payment options) match if one item passes. With no items, they never match, even Not Equal.

Cart and products

ConditionChecks
Cart TotalCart subtotal, no shipping
Product in cart / not in cartAny picked product
Variant in cart / not in cartAny picked variant
Product quantity in cartTotal quantity of picked products
Product type in cart / not in cartExact type, case-sensitive
No of ProductsItems in cart, counting quantities
Vendor Name in cart / not in cartExact vendor, case-sensitive

Customer and address

ConditionChecks
Customer billing has phonePhone of 8+ characters
Customer billing has emailEmail of 2+ characters
First Name, Last NameDelivery name (text)
Shipping Address 1 / 2Address lines (text)
Shipping CountryCountry: Is / Is Not
Shipping State / ProvinceProvince code: Is / Is Not

Address conditions wait for the buyer to type the address. With no country yet, Is fails and Is Not matches.

Delivery and payment

ConditionChecks
Shipping Delivery method titleChosen shipping method’s title
When delivery type is shop pickupStore pickup is offered
Payment Method TypeType, like Credit Card or Wallet
Payment Method HandleMethod handle. Ask support for it

Discounts and gift cards

ConditionChecks
Discount Code / Discount TitleOrder and shipping discounts
Product Discount Code / TitleDiscounts on single items
Gift card is appliedAt least one gift card
No of gift cards appliedHow many gift cards

Cart attributes and metafields

ConditionChecks
Cart attribute key and valueOne cart attribute. Missing counts as blank
Cart metafield key and valueOne cart metafield (namespace custom by default)

Use the metafield condition to react to buyer input, like a ticked checkbox. Save a field to a metafield.

Frequently asked

Do all conditions have to match? +

No. For block visibility, the block shows when any one of its conditions matches. There's no setting to require all of them.

What happens to a condition with no operator selected? +

It never matches. Pick an operator for every condition that has one.

Are text comparisons case-sensitive? +

Yes. Equal, Contains, In list and the regex operators compare text exactly as written, including capitals.

What does Cart Total include? +

For block visibility, Cart Total is compared with the cart subtotal that Shopify reports to checkout apps. It doesn't include shipping.

Related guides

Still stuck? Open the app and use Support to chat with the team, or contact us. Don't have the app yet? Install Checkout Ninja.