Is there a way to show all products?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 лет назад
How can i show all products on a page, regardless of the category?
12 лет назад
The easiest way to show all products would be this:

1) Create a category named as "Show All Products"

2) Map all your products with that category

3) Put a link somewhere on your homepage or any page saying "View All Products" and connect this link with the above category products link (By category product link I mean: when you click on any category, you go inside that category to view its products, just copy that link from the address bar).

Hope it helps...
12 лет назад

var products = this.ProductService.GetAllProducts(categoryId,
                manufacturerId, 0, null, null, null, productName,
                false, int.MaxValue, 0, null,
                ProductSortingEnum.Position, out totalRecords);


you need to set the categoryId to 0, manufacturerId to 0 and productName to "" (empty string)
and then u will get a List of all the products

the getAllproducts is using  Nop_ProductLoadAllPaged StoredProcedure


var products = this.ProductService.GetAllProducts(0,
                0, 0, null, null, null, "",
                false, int.MaxValue, 0, null,
                ProductSortingEnum.Position, out totalRecords);


the Administration/Products.aspx is listing all the products in a grid, follow the code there
11 лет назад
hezyz wrote:

var products = this.ProductService.GetAllProducts(categoryId,
                manufacturerId, 0, null, null, null, productName,
                false, int.MaxValue, 0, null,
                ProductSortingEnum.Position, out totalRecords);


you need to set the categoryId to 0, manufacturerId to 0 and productName to "" (empty string)
and then u will get a List of all the products

the getAllproducts is using  Nop_ProductLoadAllPaged StoredProcedure


var products = this.ProductService.GetAllProducts(0,
                0, 0, null, null, null, "",
                false, int.MaxValue, 0, null,
                ProductSortingEnum.Position, out totalRecords);


the Administration/Products.aspx is listing all the products in a grid, follow the code there




I tried doing and  I got  the list of products in my view...How can we show the list in  paging into our view with page size combo and category category for filtering
3 года назад
L.K wrote:
The easiest way to show all products would be this:

1) Create a category named as "Show All Products"

2) Map all your products with that category

3) Put a link somewhere on your homepage or any page saying "View All Products" and connect this link with the above category products link (By category product link I mean: when you click on any category, you go inside that category to view its products, just copy that link from the address bar).

Hope it helps...


Of course That's usefull and perfect, but I don't want to  create a new page, I want edit this : newproducts. It doesn't show any product, and it's the nopcommerce page for products  :| , how can I edit this page? I Prefer from Administration.
3 года назад
Edit the Product
Select advanced edit mode
Tick the Checkbox "Mark as New"
There is also a Catagory Setting to control the number of products to display
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.