Filtering products with metafields

You can filter products with your product metafields on the Products index page in your Shopify admin.

You can only use product metafield definitions and values for filtering. You can have a maximum of 50 definitions per product metafield definition.

Before you start

You need to complete the following tasks before you can activate product metafields filtering:

  1. add your metafield definitions
  2. add the values to products or variants

Supported metafield definition types

You can use the following metafield definition types for filtering product metafields:

  • Single line text or Single line text (list)
  • Product reference or Product reference (list)
  • True or false
  • Collection reference or Collection reference (list)
  • Page reference or Page reference (list)
  • Metaobject reference or Metaobject reference (list)

Activate product metafields filtering

To use a metafield definition on the Products index page, you need to activate the filtering setting in your metafield definitions.

Steps:

  1. From your Shopify admin, go to Settings > Custom data.

  2. Depending on the metafield definition that you want to use for filtering, click Products.

  3. Click the metafield definition that you want to use for filtering.

  4. In the Options section, turn on Filter in product index.

  5. Click Save.

Filter product metafields

After you create your metafield and activate the metafields filtering, you can filter your products with your product metafields on the Products index page.

Steps:

  1. From your Shopify admin, go to Products.

  2. Click the search and filter icon.

  3. Click Add filter +.

  4. In the Metafields section, select the metafield definition that you want to use to filter your products.

  5. Optional: To save your filter view, click Save as. Give your filter view a name, and then click Save.

Can’t find the answers you’re looking for? We’re here to help.