Paging is not working on custom view mode for category page

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 anni tempo fa
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!
7 anni tempo fa
did you override category action on plugin etc to add new custom view modes ??

did you troubleshoot on that category template view that you are getting viewmode=table there ??
7 anni tempo fa
vipul.dumaniya wrote:
did you override category action on plugin etc to add new custom view modes ??

did you troubleshoot on that category template view that you are getting viewmode=table there ??


Yes I override category action from the plugin. I try to troubleshoot but I couldn't find what is wrong. You can check here to see my problem: http://lotuls.com/li-ion-akumulatorski-alati
7 anni tempo fa
When I select the new view mode I got this error in the console:

Uncaught TypeError: a.getElementsByClassName is not a function
    at f.WOW.f.doSync (wow.min.js:2)
    at f.<anonymous> (wow.min.js:2)
    at MutationObserver.config.live.a.observe.childList (wow.min.js:2)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.