I only want to know can we exclude products instead of adding them when storefront filtering is applied
like select all except this product (filter with not )
for example
Imagine you want to order food without specific allergen. How to make a filtering bar that allows excluding allergens? The customer wants to check different allergens while browsing products from the collection list. The result should show only products, which do not contain an unwanted allergen by using storefront filtering.
is this possible ??
If it is how I can achieve this.
1 Like
@samara123
Welcome to the Shopify community!
Thanks for your good question.
Sorry for that , you are facing issues,
Kindly contact to the Shopify Support team they will help you.
to fix out your all issues.
Check out this link:
https://help.shopify.com/en/questions#/contact
or you need to hire a developer to achieve this,
What ever you are looking?
Thank you.
The only moderate way to do this is to invert the logic, aka bizzaro method.
Show all products not of that that not.
So for peanut-allergy you’d mark ever product that DOES NOT have peanuts i.e. like a tag that is “no-peanuts”.
Beyond that really needs an app or heavy customization to not only use the storefront filter system to render products but to also then use frontend javascript to remove the deeper “exclusions”
https://shopify.dev/themes/navigation-search/filtering
https://shopify.dev/themes/navigation-search/filtering/storefront-filtering
Alternatively try and use the /search engine under the hood but present it as if it was filtering.
Has anyone discovered a solution to this yet?