Hey,
I added a new view mode for category page from a plugin. Everything it's working fine except the paging and page size options. It gives a default number of product per page, but if I want to change it and select another value in the select box nothing changing. Also when I want to view another page it always gives me the products from the first page. Can someone help me to figure out what am I missing?
This is the part of the code from CategoryTemplate.ProductsInGridOrLines.cshtml:
@if (Model.Products.Count > 0)
{
<div class="product-@(Model.PagingFilteringContext.ViewMode)">
<div class="item-grid">
@if (Model.PagingFilteringContext.ViewMode == "table")
{
foreach (var product in Model.Products)
{
<div class="item-box">
@Html.Partial("_ProductBoxCustom", product)
</div>
}
}
else
{
foreach (var product in Model.Products)
{
<div class="item-box">
@Html.Partial("_ProductBox", product)
</div>
}
}
</div>
</div>
}
I have this problem only for the new view mode, for Grid and List view modes it's working fine.
Thanks!