Automated collections with metafields

Automated collections use selection conditions to automatically include matching products. You can add up to 60 selection conditions in a single collection, and you can specify if products need to meet all conditions or any condition to be included in the collection.

Before you can create an automated collection by metafields, you need to do the following:

Benefits of automatic collections by metafields

Automated collections by metafields help you create more accurate collections for your products and variants compared to product tags. For example, you can set up a collection using the tags that include red. However, red is used for product color, and urgency-red is used for fulfillment urgency. In this example, your collection would have products that are both the color red and have a fulfillment urgency of urgency-red, because they both include red. In this example, tags aren't going to work for your color red collection.

Since metafields are part of your data model, you can integrate this same data across Shopify, such as your online store. You can use metafields to be more specific in your collections. You can create metafield definitions for color, and then create a collection that only pulls in products that have the color value you want for the collection. You can create a metafield definition that is for fulfillment urgency, and then create a collection that only pulls in products that are marked with an urgent fulfillment value. Metafields provide more flexibility and structure than tags.

You can add specific variants to your automated collections using metafields. This isn't possible with product tags. For example, if you have a product with two different materials, then you can't create a collection using tags for that specific material. The product tag automatically adds in both variants from that product. That means, to create a collection with a specific material with products tags, you need to create two different products. If you add a metafield definition for material to a specific variant, then you can create an automated collection for that material and the collection won't pull in the other variant for that product.

Limitations

Automated collections by metafield conditions have the following limitations:

  • You can only use product or variant metafield definitions and values in your automated collections.

  • The activate automated collections setting has a maximum of 128 definitions per product metafield definitions and variant metafield definitions.

  • You cannot delete a metafield defintion until the collection is updated to remove the metafield definition as a condition.

Metafield defintions and supported condtions

Only certain metafield product and variant definitions are supported with specific conditions.

Metafield definitions and supported conditions for automated collections
Metafield definition type Supported conditions
True or false equals
Integer equals
greater than
less than
Decimal equals
greater than
less than
Rating equals
greater than
less than
Single line text (one value and list of values) equals

Activating the automated collections setting

To use a metafield definition for automated collections, you need to activate the setting in your metafield definitions.

Learn more about creating custom metafield definitions.

Create automated collections with metafield defintion conditions

You can add a condition to include products or variants with a particular metafield.

The first column of the drop-down list for your automated collection conditions is the name of your metafield definition. The second column is your supported conditions, such as equals. The third column is for your metafield values and is a drop-down list or text box. Only metafield definitions with the automated collections setting activated display.

For example, to set up a condition that selects products with the metafield definition Color and the value #FF0000:

Steps:

Learn more about automated collections.

Ready to start selling with Shopify?

Try it free