Catalog Category by SEOUri

Vote:
 

Hi,

I am looking to create a function that will return "Category / Subcategory" for the given SEOURI.

Is there a way I can search for Category in entire Catalog.

My Code so far works for Product but not for Category Node.

var catalogEntry = _catalogSystem.GetCatalogEntryByUriDto(SEOUri, "en-GB");

if (catalogEntry .CatalogEntry.Count > 0 && catalogEntry .CatalogEntry[0].Code != "")
{
 return true;
}

Thanks,

Anurag

#186533
Dec 21, 2017 18:04
Vote:
 

You can use this from ICatalogSystem

https://world.episerver.com/documentation/class-library/?documentId=commerce/7.5/55CDC787

#186534
Dec 21, 2017 18:38
Vote:
 

Hi Quan,

Thanks for your answer, it workes straight away.

Not sure how missed it, I think I looked into GetCatalogNodeDto() but didn't look into all the different signature that it offers.

Thanks,

Anurag

#186535
Dec 21, 2017 18:58
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.