Collection Rule Relation
Specifies the relationship between the column
and the condition
.
Anchor to Valid valuesValid values
- Anchor to CONTAINSCONTAINS
The attribute contains the condition.
- Anchor to ENDS_WITHENDS_
WITH The attribute ends with the condition.
- Anchor to EQUALSEQUALS
The attribute is equal to the condition.
- Anchor to GREATER_THANGREATER_
THAN The attribute is greater than the condition.
- Anchor to IS_NOT_SETIS_
NOT_ SET The attribute is not set (equal to
null
).- Anchor to IS_SETIS_
SET The attribute is set (not equal to
null
).- Anchor to LESS_THANLESS_
THAN The attribute is less than the condition.
- Anchor to NOT_CONTAINSNOT_
CONTAINS The attribute does not contain the condition.
- Anchor to NOT_EQUALSNOT_
EQUALS The attribute does not equal the condition.
- Anchor to STARTS_WITHSTARTS_
WITH The attribute starts with the condition.
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.
- •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.