Try our conversational search powered by Generative AI!

Getting all Products under Catalog in Episerver



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.



Jan 08, 2019 16:58

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

Jan 08, 2019 21:05

Thank you very Much Quan.It worked.

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.