Skip to content

Managing Filter Visibility for Collections via Metafields

Managing Filter Visibility options:

Hide Filters

Use it if you want to hide filters that are globally visible in the store from specific collections. For example, you can disable extra YMM fields (like BedLength, BodyType, etc.) from the collection, but they will still be visible in the rest of the store.

Show Filters

Use it if you want to show some filters on specific collections only.

Add filters inside the App. You can selectively enable them for certain collections by clicking the “Visible” checkbox.

Note: By default, when adding a new filter in the App, the “Visible” option is enabled.

Creating the Metafield for Managing Filter Visibility:

Open “Settings” and select there “Custom data” → “Collections”:

Click “Add Definition”

Note: You can create both metafields (Hide Filters and Show Filters) or only the one that you need.

Hide filters

Use “Hide filters” as the metafield’s name and “convermax.hide_filters” as the namespace and key.
Click “Select Content Type” → “Single Line Text” → “List of values”:

Click “Save”.

Show filters

Use “Show filters” as the metafield’s name and “convermax.show_filters” as the namespace and key.
Click “Select Content Type” → “Single Line Text” → “List of values”:

Click “Save”.

Note: After you create metafields, force re-index to update filters that you can show/hide on collections.

Managing Filter Visibility

After re-index, go to Collections.

Scroll down to the metafields list.

Click on the “Hide filters”/“Show filters” metafield and select the filters you want to hide/show in the collection.

After filling out the metafields with filters on the collections, you can force re-index to display the changes in your store.