How to use Metafields to create filters
Go to the Settings:
Custom data → Products
Click on “Add Definition”.
Enter the needed filter name into the Name field.
Then press “Select Content Type” → Text -> Single line text → List of values.
Press Save. Then go to the needed product page, scroll to the Metafields, select the created Metafield, and enter the needed filter value into the value field:
After that, go to our app home page and start re-index.
When it’s done, you’ll be able to find your newly created field on the Filters page of our app. Go there, press “Add another filter” and find the recently added Metafield (it will be listed as namespace_name
instead of namespace.name
) - custom.color
in this case, select it and save changes.
For changes to take effect, you’ll need to perform re-index again.