Filtering Search Results

Solved
MotoHeaven
New Member
3 0 0

Good Morning,

With the release of Shopify 2.0 stores in recent months and the implementation of filtering into Shopify Itself, the platform has now eluded to the fact we have the ability to use this feature to filter Search Results without an app. 

Is this feature available to be implemented right now as it is not on Dawn template nor many of the leading 2.0 templates available right now.

And on another note is it confirmed that Metafields will become an option for this new filter menu in the future?

MotoHeaven_0-1632705634355.png

Thanks

0 Likes
PaulNewton
Shopify Partner
3135 195 576

Filters are available in Dawn and is available in OS2.0 compatible themes that have that feature.

Be sure to check for theme updates or your themes developers docs first if you cannot find this feature in your theme.


@MotoHeaven wrote:

And on another note is it confirmed that Metafields will become an option for this new filter menu in the future?


OS2 has Metafield definitions but no clear indication of metafield support in filters 

https://help.shopify.com/en/manual/metafields/metafield-definitions 

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
0 Likes
MotoHeaven
New Member
3 0 0

Unless I am missing something SEARCH Filters are not available in Dawn as the feature does describe. I understand they work in Collection Pages but my original post has highlighted the mention of Search Result Filtering. 

0 Likes
PaulNewton
Shopify Partner
3135 195 576

This is an accepted solution.

Always backup themes before making changes

You may need to check for a theme update, or for Dawn try and merge in the latest git changes as it should be available, also double check theme settings.

https://github.com/Shopify/dawn/pull/566 

https://github.com/Shopify/dawn/blob/main/snippets/facets.liquid 

 

(untested) If you need to add filtering for search to an OS2.0 theme you may just be able to use a custom liquid block|section and add the boilerplate code from the dev docs.

https://shopify.dev/themes/navigation-search/filtering#search-results-filter-display 

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com