What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to manage collection and nested collection/sub-collection with Admin/storefront API's?

How to manage collection and nested collection/sub-collection with Admin/storefront API's?

Mahesh18
Visitor
1 0 1

Hi Team,

We want to manage collection as follows in our own application:

1. Clothing

a. MensClothing 

i.Tshirt

...

b. Womens Clothing

i.Tshirt

...

2.Hats

...

 

In above example 1. clothing is top category then a. MensClothing is child/sub category in it.

 

so in shopify i did not find a way to organize products  in above way.

 

Do shopify have API to arrange products in category and sub category ?

Any way to handle subcategories by using Admin or storefront API's?

What is the recommended way to handle categories and sub-categories in storefront Application? 

 

could you please help me in this?

Replies 2 (2)

ftballguy45
Shopify Partner
32 0 12

Same here - is this really missing from Shopify features?😮

ShopifyDevSup
Shopify Staff
1453 238 525

Hi @Mahesh18 and @ftballguy45 

The Admin API does not have a sub-collection feature, but there are options to display filtered collections with both the Online Store sales channel and the Storefront API.

With the Storefront API the Collections.products connection accepts productFilters as arguments to refine the results.

 

Hope that helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog