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
This object defines all columns and allowed relations that can be used in rules for smart collections to automatically include the matching products.
- •INPUT OBJECT
The input fields for a rule to associate with a collection.