Getting products in a collection by tag

Highlighted
New Member
7 0 0

Hi,

 

I'm building a custom app, and trying to build in some navigation. This is going to be, select a collection, choose a filter (based on tag) and then view products.

 

After some perusing of the documentation, I cannot see a way of returning products with a certain tag applied, from a specific collection.

 

I can see 'collectionByHandle', but this seems to provide no way of querying products by tag. I can see a way to query products by tag, although this isn't much use as I can't pass a collection handle filter. Is my only option to do this manually and join them up myself?

0 Likes
Shopify Staff
Shopify Staff
1041 140 167

Hey @SimpleWorxLtd,

 

When querying products within a collection, you're not able to use the query argument to filter products further. I believe you would need to manually connect them.

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes