Product
Store demo
Showcase
Features
Why for developers
Why for store owners
Industries
Fashion
Health & Beauty
Food & Beverage
Automotive
Industrial & Scientific
Furniture
B2B eCommerce
International
Downloads
Download nopCommerce
Marketplace
Translations
Copyright removal key
Mobile application
Web API
Support & services
Training
Documentation
Community forums
Premium support services
Request a quote
Contact us
Partners
English
English
Español
Deutsch
Russian
Français
Italiano
Português
Türkçe
简体中文
日本語
Tiếng Việt
Get started
Shopping cart
My account
Log in
Register
Home
>
Forums
>
General
>
Next Steps / Optimizations / Marketing
>
How can I display all existing products in a catalog template?
How can I display all existing products in a catalog template?
Reply
zaf
Total Posts:
458
Karma:
2514
Joined:
1/15/2015
Location:
Russia
Posted:
7 months ago
3.90
I have created a catalog template: CategoryTemplate.ProductsInGridOrLines_allproducts.cshtml
How can I display all existing products in this category even if the product is unpublished?
Thanks in a advance.
a.m.
Team Member
Total Posts:
16616
Karma:
155905
Joined:
10/22/2008
Location:
Armenia
Posted:
7 months ago
Please check the "PrepareCategoryModel" method in the /Nop.Web/Factories/CatalogModelFactory.cs file. It invokes the "productService.SearchProducts" method to load products.
Ensure that the "showHidden" parameter as passed with the "true" value
Reply
Still have questions or need help?
.
Premium support services
.
Get dedicated support from the nopCommerce team with a guaranteed response within 24 hours.
.
Online course for developers
.
Get the practical and technical skills you need to run and customize nopCommerce websites.