New Shopify Certification now available: Liquid Storefronts for Theme Developers

How to preselect a filter by default on the Search & Discovery app

Shopify Partner
4 0 0

Hi there,


I was experiencing an issue with the Search & Discovery app where when I was filtering on size it was showing me all products with that size as existing variant even if it was out of stock. I found out that if I keep the 'Availability' filter and filter on 'In stock', that sorts out the issue.


However, forcing users to go through an additional filter to see sizes that are in stock is pretty useless so I was hoping I can find a way to have the 'In stock' option of the 'Availability' filter preselected by default and the accordion for the 'Availability' filter not collapsed. Could anyone help with that?

My website is

And here is a screenshot of the filter:

Screenshot 2023-11-15 at 10.50.28.png

Reply 1 (1)
Shopify Partner
1406 131 151

Hi @Gergana 


Please configure your search form as suggested in the below URL.


Hope this will help...

For any custom development WhatsApp or connect at Email ID: for quick consultation. | YouTube Videos
To support Buy Me a Coffee