Skip to main content
Log inSign up
Anchor to CollectionRuleColumn

CollectionRuleColumn

enum

Specifies the attribute of a product being used to populate the smart collection.

•

An attribute evaluated based on the compare_at_price attribute of the product's variants. With is_set relation, the rule matches products with at least one variant with compare_at_price set. With is_not_set relation, the rule matches matches products with at least one variant with compare_at_price not set.

•

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_METAFIELD_DEFINITIONPRODUCT_METAFIELD_DEFINITION
•

This category includes metafield definitions that have the useAsCollectionCondition flag set to true.

Anchor to PRODUCT_TAXONOMY_NODE_IDPRODUCT_TAXONOMY_NODE_ID
•

The product_taxonomy_node_id attribute.

•

The tag attribute.

•

The title attribute.

•

The type attribute.

Anchor to VARIANT_COMPARE_AT_PRICEVARIANT_COMPARE_AT_PRICE
•

The variant_compare_at_price attribute.

•

The variant_inventory attribute.

Anchor to VARIANT_METAFIELD_DEFINITIONVARIANT_METAFIELD_DEFINITION
•

This category includes metafield definitions that have the useAsCollectionCondition flag set to true.

•

The variant_price attribute.

•

The variant_title attribute.

•

The variant_weight attribute.

•

The vendor attribute.


Was this section helpful?

•
OBJECT

The attribute that the rule focuses on. For example, title or product_type.

•
INPUT OBJECT

The attribute that the rule focuses on. For example, title or product_type.


Was this section helpful?