Quick tip: display a view for the catalog node in EPiServer Commerce

Unfortunately you cannot extend the CatalogNode in EPiServer Commerce and when browsing to it, you get a 404 page. Hopefully this will be possible in a future version.

In the meantime you can use this to display your catalog node:

public class CatalogContentController : ContentController<CatalogContent>
    {
        public ActionResult Index(CatalogContent currentPage)
        {
            return this.View(currentPage);
        }
    }

In your view you can render a partial view, some static html, etc.

You could also use a ViewModel in which you can implement some logic to display the things you want.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s