Collection Rule Column
Specifies the attribute of a product being used to populate the smart collection.
Anchor to Valid valuesValid values
- Anchor to IS_PRICE_REDUCEDIS_
PRICE_ REDUCED An attribute evaluated based on the
attribute of the product's variants. With
relation, the rule matches products with at least one variant with
set. With
relation, the rule matches matches products with at least one variant with
not set.
- Anchor to PRODUCT_CATEGORY_IDPRODUCT_
CATEGORY_ ID This rule type is designed to dynamically include products in a smart collection based on their category id. When a specific product category is set as a condition, this rule will match products that are directly assigned to the specified category.
- Anchor to PRODUCT_CATEGORY_ID_WITH_DESCENDANTSPRODUCT_
CATEGORY_ ID_ WITH_ DESCENDANTS This rule type is designed to dynamically include products in a smart collection based on their category id. When a specific product category is set as a condition, this rule will not only match products that are directly assigned to the specified category but also include any products categorized under any descendant of that category.
- Anchor to PRODUCT_METAFIELD_DEFINITIONPRODUCT_
METAFIELD_ DEFINITION This category includes metafield definitions that have the
flag set to true.
- Anchor to PRODUCT_TAXONOMY_NODE_IDPRODUCT_
TAXONOMY_ NODE_ ID The
tag
attribute.- Anchor to TITLETITLE
The
title
attribute.- Anchor to TYPETYPE
The
type
attribute.- Anchor to VARIANT_COMPARE_AT_PRICEVARIANT_
COMPARE_ AT_ PRICE - Anchor to VARIANT_INVENTORYVARIANT_
INVENTORY - Anchor to VARIANT_METAFIELD_DEFINITIONVARIANT_
METAFIELD_ DEFINITION This category includes metafield definitions that have the
flag set to true.
- Anchor to VARIANT_PRICEVARIANT_
PRICE - Anchor to VARIANT_TITLEVARIANT_
TITLE - Anchor to VARIANT_WEIGHTVARIANT_
WEIGHT - Anchor to VENDORVENDOR
The
vendor
attribute.
Anchor to FieldsFields
- •OBJECT
Represents at rule that's used to assign products to a collection.
- •OBJECT
Defines the available columns and relationships that can be used when creating rules for smart collections. This provides the schema for building automated collection logic based on product attributes.
For example, merchants can create rules like "product type equals 'Shirts'" or "vendor contains 'Nike'" using the conditions defined in this object to automatically populate collections.
Use
to:
- Discovering valid field options for smart collection rule interfaces
- Understanding which conditions are available for automated collections
- Exploring available product attributes for collection automation
- Learning about proper field relationships for rule implementation
The conditions define which product fields can be used in smart collection rules and what types of comparisons are allowed for each field.
Learn more about smart collections.
- •INPUT OBJECT
The input fields for a rule to associate with a collection.