Skip to main content
Anchor to CollectionSourceInclusionConditionVariantCompareAtPriceInput

CollectionSourceInclusionConditionVariantCompareAtPriceInput

input_object

The input fields for a condition based on variant compare at prices.

•CollectionSourceInclusionConditionVariantCompareAtPriceRelation!
non-null

The relationship between the variant compare at price and the condition value.

•MoneyInput

The variant compare at price to match against. Required for numeric relations and must be absent for IS_SET or IS_NOT_SET.


Was this section helpful?

Anchor to Input objects using this inputInput objects using this input

•INPUT OBJECT

A condition that determines which products are included in a collection.

Available condition types, grouped by what they filter on:

  • Product attributes: productTag, productTitle, productType, productVendor, productStatus, productCategory.
  • Variant attributes: variantTitle, variantPrice, variantCompareAtPrice, variantInventory, variantWeight.
  • Pricing: isPriceReduced.
  • Metafields: metafieldBoolean, metafieldDecimal, metafieldString, metafieldStringList, metafieldMetaobject, metafieldMetaobjectList, and either metafieldInteger or metafieldInt for integer metafields. Use metafieldInteger before API version 2026-10 and metafieldInt from 2026-10 onward. metafieldInteger is deprecated as of 2026-10 and removed as of 2027-01.

Each condition type specifies its own relation (for example, EQUALS, CONTAINS, TAGGED_WITH) and value shape. Combine multiple conditions in a single source's inclusion.conditions list and use the source's matchType to require that products match ANY or ALL of them.


Was this section helpful?