Hi All,
I have a partial view called _ProductGrid. THis is located in the views/shared area. Now, when I try and access the catagories, I can't figure it out.
If I add
@model Nop.Web.Models.Catalog.CategoryModel
@if (Model.SubCategories.Count > 0)
{
}
to the top of my partial class then it errors (object ref not set to an instance of an object). How can I access the cetegoriees from a partial class?