Skip to main content

Filtering products by Metaobject values

In this article, we will show you how to set up your filters with the metaobject values

Updated yesterday

πŸ“– As a Shopify merchant, you're constantly looking for ways to enrich your product information and provide a more detailed shopping experience. That's where Shopify Metaobjects come in. These powerful, customizable data structures allow you to add and store any additional structured information for your store – going far beyond the standard product fields. Imagine seamlessly associating detailed product features, precise specifications, comprehensive size charts, or even rich material descriptions directly with your products.

Since March 2023, Shopify has empowered you to create and manage basic Metaobjects directly within your Shopify admin. However, to truly harness their power and streamline your workflow, you often need more advanced capabilities.


Prepare Your Metaobject in Shopify

  1. Go to your Shopify Admin.

  2. Navigate to Settings > Metafields and metaobjects.

  3. Add your definitions and define its fields and structure (e.g., sustainability certifications, material details).

πŸ”— For detailed instructions on creating Metafields, refer to Shopify’s Metaobjects documentation.


Add product Metaobject to the app's admin

To create a filter for your Metaobject values on your storefront, the Metaobject, containing all those values, must be successfully added to the app's admin. The app can sync values of product Metaobjects which are created either directly from Shopify or by using an app from the Shopify App Store.

πŸ’‘ Check our Pricing plan to find out how many Metaobjects you can add to your store.

1. From our app’s admin, go to Tool βš™οΈ > Metafields.

2. Click Add new.

3. Click Select source and find the desired Product metaobject you'd like to add to Boost app.

4. In the Applies to section:

Select Filter option if you want to create a filter option by Metaobject.

⚠️ Our Filter Option feature is optimized to work seamlessly with 13 field types. If you have an existing field of a different type, consider creating a new field specifically for filtering purposes.

Field

Shopify

Our app

Date and time

Date and time

❌

βœ…

Date

❌

βœ…

Measurement

Dimension

❌

βœ…

Volume

❌

βœ…

Weight

❌

βœ…

Number

Decimal

βœ…

βœ…

Integer

βœ…

βœ…

Text

Multi-line text

❌

❌

Rich text

❌

❌

Single line text

βœ…

βœ…

Reference

Company

❌

❌

Customer

❌

❌

Product

❌

❌

Collection

❌

❌

Product variant

❌

❌

File

❌

βœ…

(apply to swatch only)

Metaobject

❌

❌

Page

❌

❌

Other

True or false

βœ…

βœ…

Color

❌

βœ…

(apply to swatch only)

ID

❌

βœ…

Rating

❌

βœ…

URL

❌

❌

Money

❌

βœ…

Link

❌

❌

Advanced

JSON

❌

❌

Mixed reference

❌

❌

5. Click Save and wait about 3 minutes to let the sync process complete.

6. [Optional] When you encounter an error message that says β€œInvalid metafields found” or β€œIncorrect information or metafield not found in products”:

  • The products with the corresponding Metafields might have been deleted.

  • When you have choosed in the correct namespace, you can connect that Metafield/Metaobject to your theme to display specialized information on your storefront. Then you refresh the Metafields and Metaobjects page from our app’s admin to check if the error message disappears.


Create a filter for Metaobject values

Now you can create a filter for values of the Metaobjects you have added successfully to Boost AI Search & Discovery database.

  1. From the app’s admin, go to Filter > Manage filter trees.

  2. Click the filter tree that you want to set up a filter for the Metaobject values.

  3. Click Add filter option.

  4. In the drop-down of Option Type, select the phrase that starts with "Metaobject-" and shows the namespace and the key of the Metaobject you want to use its values.

In the example of selling global-shipping clothes, the phrase that you must select in the drop-down of Option Type looks like the following:

πŸ’‘ When you cannot find the Metaobject you have added to the app's admin in the drop-down of Option Type:

  • You might not have added the Metaobject successfully to the app's admin due to Invalid metaobjects found or Incorrect information or metaobject not found in products errors.

  • You might not have selected the Filter option in the Applies to section when adding the Metaobject to the app's admin.

5. Fill in how you want the filter to appear on your storefront under the Option label heading.

6. Customize other settings to your liking.

7. Click Save on the Edit filter option page.

8. Click Save on the Filter options page.


Feel free to reach out to our dedicated support team via chat if you have any questions or require additional assistance.

Did this answer your question?