Try our conversational search powered by Generative AI!

Commerce Category Menu Control

Vote:
 

Hi

Could some please provide me the code to build a category menu in episerver. I have to build a two level category menu. I need to build this from the catalog and not the page structure like the default site.

Kind Regards

Sandeep

#52168
Jul 09, 2011 14:49
Vote:
 

Any luck with this yet?

#55673
Dec 13, 2011 9:18
Vote:
 

I have managed to solve this.

#55798
Dec 18, 2011 1:02
Vote:
 

Could you share please?

#55807
Dec 19, 2011 10:24
Vote:
 

The way I have imlemented is that I have the very top level categories are in the the CMS. And then I use the categories defined on those pages to build the child categories like below

CatalogNodes nodeslevel2 = CatalogContext.Current.GetCatalogNodes(catalogs.Catalog[0].Name, pTopCatPage.URLSegment.ToString());

You need to build the child categories one by one.

Hope this was helpful.

Regards

Sandeep

 

 

#55814
Dec 19, 2011 14:08
Vote:
 

Thank you for sharing.

#55815
Dec 19, 2011 14:16
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.