Displaying all products in category

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi, i am trying to add an option to the page size drop down box on the category pages. at the minute i have 12, 24 and 48. i would like to add an option to show 'All' products. i thought about adding an option of 100000. however this wouldn't look very good if there are only 50 products to show for example. how can i add an 'All' option to the drop down list?

I am using NopCommerce Version 3.90

Thanks
6 years ago
Displaying all products will be making your page very slow. I recommend you to reconsider this.
5 years ago
loading slow is fine. How to show all products in the category page
5 years ago
Hello,

Did you read this existing post

Hope it will solve your problem.

Thanks,
Jatin
5 years ago
Hi, the option is not avaiable in latest version - "Include products from subcategories:".
5 years ago
ezhilin wrote:
Hi, the option is not avaiable in latest version - "Include products from subcategories:".

Yes it is in Catalog Settings (Advanced Mode) in the Catalog Pages section
5 years ago
Thanks. I have enabled "Include products from subcategories". but still shows only 6 product per cateotry. I have also removed the line from CategoryTemplate.ProductsInGridOrLines.cshtml. which does not help

var pager = Html.Pager(Model.PagingFilteringContext).QueryParam("pagenumber");
5 years ago
ezhilin wrote:
Thanks. I have enabled "Include products from subcategories". but still shows only 6 product per cateotry. I have also removed the line from CategoryTemplate.ProductsInGridOrLines.cshtml. which does not help

var pager = Html.Pager(Model.PagingFilteringContext).QueryParam("pagenumber");


Hi,

It goes from model as well. Not only .cshtml page. Please fill proper value for "Page Size options (comma separated)" in your category description on Admin -> Catalog -> Categories -> YOUR CATEGORY -> Edit.

You cannot just display all products in nopCommerce without customizing c# source code but you can set a large page size number.

Otherwise, second option is to use Lazy loading (Continuous loading) instead of paging. This you can configure on .cshtml view page.

Thank you,
Atul
5 years ago
Thanks Atul
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.