Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Getting all Products under Catalog in Episerver

Vote:
 

Hi,

We are trying for a scenario where we need to fetch all the products in a catalog. Is there a specific method or api to fetch all the products under a catalog even though there are specific nodes available in it.

Note: we already tried fetching nodes and parsing them to fetch the products for each node.

Regards,

Varun

#200300
Jan 08, 2019 16:58
Vote:
 

Technically you can use IContentLoader.GetDescendents and then IContentLoader.GetItems to load all products under a catalog. But I'd advise against that because it's very heavy.

My recommendation is to go with 1.2 recipe here https://leanpub.com/epicommercerecipes/read_sample

#200320
Jan 08, 2019 21:05
Vote:
 

Thank you very Much Quan.It worked.

#200362
Jan 09, 2019 16:07
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.