> For the complete documentation index, see [llms.txt](https://help.accentuate.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.accentuate.io/metafield-definitions/using-metafields-as-smart-collection-conditions.md).

# Using metafields as Smart Collection Conditions

Shopify's automated ("smart") collections build their product list automatically from a set of conditions instead of requiring you to add products one by one. When you define a Shopify-native Metafield in ACF you can choose to make it available as one of those conditions, so the custom data you manage in ACF can drive collection membership.

With this option enabled the Metafield definition is registered with Shopify as a smart collection condition. Merchants can then select it in the automated collection editor and build rules such as "include every product where this Metafield equals a given value", keeping collections up to date as your data changes.

The "Enable as smart collection condition" setting is only shown for the field types Shopify supports as collection conditions. It is not available for Metaobject definitions or their fields.

### Eligible Field Types

Shopify only allows certain Metafield types to be used as smart collection conditions. In ACF the option appears for:

* True/false (boolean)
* Integer
* Decimal
* Rating
* Single line text
* Metaobject reference
* List of metaobject references

> If your field is not one of the types above, the "Enable as smart collection condition" option will not appear. Eligibility is determined by the field type and follows Shopify's API contract.

> Smart collection conditions apply to product-scoped Metafields, which is where Shopify evaluates automated collection rules.

### Enabling the Condition

The setting lives in the **Advanced options** section of the field definition. Tick **Enable as smart collection condition** and save your changes for the capability to be added to the Shopify Metafield definition.

<figure><img src="/files/NrbqSFRH1xIykzCxrNlP" alt=""><figcaption></figcaption></figure>

Once enabled, open (or create) an automated collection in Shopify, choose your Metafield from the condition dropdown, and set the value to match. Products are added to the collection automatically whenever their Metafield value satisfies the rule.

> Changing the setting updates the Metafield definition in Shopify. Existing values are not modified; the capability simply becomes available (or unavailable) as a collection condition going forward.
