Filtering company and company location metafields

You can filter company and company location metafields on the Companies index page and company details page. This can help you analyze and organize your company data in B2B.

You can only use company or company location metafield definitions and values for filtering. You can have a maximum of 50 definitions per company metafield definitions and company location metafield definitions.

Before you start

You need to complete the following tasks before you can activate company and company location metafields filtering:

Supported metafield definition types

You can use the following metafield definition types for filtering company and company location metafields:

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

Activate company and company location metafields filtering

To use a metafield definition on the Companies index page and company details 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 Companies or Company locations.

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

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

  5. Click Save.

Filter company metafields

After you create your metafield and activate the metafields filtering, you can filter your company metafields on the Companies index page.

Steps:

  1. From your Shopify admin, go to Customers > Companies.

  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 companies.

Filter company location metafields

After you create your metafield and activate the metafields filtering, you can filter your company location metafields on a company details page.

Steps:

  1. From your Shopify admin, go to Customers > Companies.

  2. Click a company that you want to filter.

  3. Click the search and filter icon.

  4. Click Add filter +.

  5. In the Metafields section, select the metafield definition that you want to use to filter your company locations.

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