All things Shopify and commerce
Hi there,
I created the 'Outdoor items' collection based on several tags.
For the navigation, I would like to display only some of these tags.
If you look at the picture below, I'd like to be able to show 2 tags (Cocktail Table, Accent Table) from the 'Outdoor items' collection under the menu 'Cocktail & Accent Tables'.
The problem is that when I use 2 tags the menu only shows products tagged with both tags, rather than the products tagged with each.
Is it possible to have the collection in the navigation to show both tags?
I know I can create a collection 'Cocktail & Accent tables' but the navigation would make it a lot easier.
If anyone has come across this please let me know,
Thanks
We are trying to do the same thing, have you found if this is possible?
Same here.
I found this Shopify dev document explaining how the AND operator is automatically applied when multiple tags are applied on a (collection) filter :
https://shopify.dev/docs/themes/navigation-search/filtering/tag-filtering
If in the menu collection filter, you apply the comma or + operator between 2 tags
it is translated to this URL and only resulting in products with both tags present :
The https://shopify.dev/docs/themes/navigation-search/filtering/tag-filtering doc however, reveals a feasible solution to override the default AND behaviour and turn it to the desired OR behaviour :
https://shopify.dev/docs/themes/navigation-search/filtering/storefront-filtering
This requires some development skills however.
If I find some time, I'll dive further into it.
In the meanwhile, the only other option is to create a dedicated collection where your conditional OR requirements or multiple tags can be foreseen like this
and your menu item refers to this dedicated collection.
Thank you, after a few discussion with support I just went and reorganised the menus & collections, it doesn't actually appear that filtering the collections like it suggests is actually possible.
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024