I'm wondering if there's a way to search for a product based on the metafield value.
I've 3 dropdowns, i.e. Year/Make/Model.
I have 3 metafields also, i.e. inventory.year, inventory.make & inventory.model (inventory is NAMESPACE & year, make, model are KEY).
I need to search for products based on these 3 metafields. Thanks
There isn't a funcionality to search directly based on metafields yet.
What could work, is to add the meafields as product tags, and filter the products/collections this way. You can read more about it here- https://docs.shopify.com/manual/configuration/store-customization/page-specific/collections/filter-a...
Hope this helps!
Given the extremely limited scope of shopify's "core" fields, and how many people must use metafields for product specifics, it seems this functionality ought to be a top priority (as in "yesterday") for shopify...
I am still looking for the solution. all the links or documents mainly talk about "how one can display metafield on theme" when one is already on a product page.
Isn't there a functionality ( either using Graphql query or storefront API ) to directly search a variant based on some query. This is quite surprising that even after many people struggling with this. It is not added in shopify