<a class="toggleControl">@specificationFilterGroup.Name</a>
<a class="toggleControl closed">@specificationFilterGroup.Name</a>
<div class="filtersGroupPanel filtersDropDownPanel" data-optionsGroupId="@specificationFilterGroup.Id" style="z-index: @currentZIndex;">
<div class="filtersGroupPanel filtersDropDownPanel" data-optionsGroupId="@specificationFilterGroup.Id" style="z-index: @currentZIndex;" style="display: none;">Also can you please try and update the Ajax Filters plugin to the latest version. We added some bug fixes. For more information on how to do this please read the following article: http://www.nop-templates.com/t/How-To-Update-A-NopCommerce-Plugin
Ivan Stoyanov
@section left {
@*--------------------------------------------------------------------*@
@*subcategories*@
@*--------------------------------------------------------------------*@
@{
//current category ID
int currentCategoryId = 0;
if (Url.RequestContext.RouteData.Values["controller"].ToString().Equals("catalog", StringComparison.InvariantCultureIgnoreCase) &&
Url.RequestContext.RouteData.Values["action"].ToString().Equals("category", StringComparison.InvariantCultureIgnoreCase))
{
currentCategoryId = Convert.ToInt32(Url.RequestContext.RouteData.Values["categoryId"].ToString());
}
}
@Html.Widget("categorydetails_before_subcategories")
@if (Model.SubCategories.Count > 0)
{
<div class="sidebar-block">
<h5>@T("Categories")</h5>
<ul class="sidebar-navigation">
@foreach (var item in Model.SubCategories)
{
<li>
<a href="@Url.RouteUrl("Category", new { SeName = item.SeName })">@item.Name</a>
</li>
}
</ul>
</div>
}
else
{
if (Model.ParentCategories.Count > 0)
{
<div class="sidebar-block">
<h5>@T("Categories")</h5>
<ul class="sidebar-navigation">
@foreach (var item in Model.ParentCategories)
{
<li>
@if (currentCategoryId == item.Id)
{
<a href="@Url.RouteUrl("Category", new { SeName = item.SeName })" class="active">@item.Name</a>
}
else
{
<a href="@Url.RouteUrl("Category", new { SeName = item.SeName })">@item.Name</a>
}
</li>
}
</ul>
</div>
}
}
}
The parameters dictionary contains a null entry for parameter 'categoryId' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult GetFilteredProducts(Int32, SevenSpikes.Nop.AjaxFilters.Models.PriceRangeFilterSlider.PriceRangeFilterModel7Spikes, SevenSpikes.Nop.AjaxFilters.Models.SpecificationFilter.SpecificationFilterModel7Spikes, SevenSpikes.Nop.AjaxFilters.Models.AttributeFilter.AttributeFilterModel7Spikes, SevenSpikes.Nop.AjaxFilters.Models.ManufacturerFilter.ManufacturerFilterModel7Spikes, Nop.Web.Models.Catalog.CatalogPagingFilteringModel, System.String)' in 'SevenSpikes.Nop.AjaxFilters.Controllers.Catalog7SpikesController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
Parameternaam: parameters