showTotalSummary in PagerModel on category listing

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
In PagerHtmlExtension.cs I can see code blocks like "if (model.ShowTotalSummary && (model.TotalPages > 0))".
Where in a category listing pages code would I set this property please? Or is it an admin setting?

Thanks
10 years ago
To show the pagination total summary for the category template, edit the view: Views\Catalog\CategoryTemplate.ProductsInGridOrLines.cshtml

Change line 173 (nopCommerce 3.00) from:
@Html.Pager(Model.PagingFilteringContext).QueryParam("pagenumber")

to the following (change underlined):
@Html.Pager(Model.PagingFilteringContext).QueryParam("pagenumber").ShowTotalSummary(true)

.
1 year ago
The default number of pagination is 5 at the bottom of the product page.
How can I set it to 10 or display all number of pagination?

Here is the screenshot
https://www.sendfile.cc/uploads/file/0.647959001652778013.png
1 year ago
popolun wrote:
The default number of pagination is 5 at the bottom of the product page.
How can I set it to 10 or display all number of pagination?

Here is the screenshot
https://www.sendfile.cc/uploads/file/0.647959001652778013.png


Hi, please try to do the following change:
1. Find the following view:
Views\Catalog\_ProductsInGridOrLines.cshtml
2. Add the following Page method "IndividualPagesDisplayedCount" ('Set number of individual page items to display') and set the needed value (for example: 10), see the link bellow:
https://prnt.sc/Kz_S-PR6OUHZ
1 year ago
It works. You are awesome!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.