Product search result display in which order on Front and admin panel

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Please let me know how based on which order the serch product result display.
Like : order by which parameter the product display.

EX : order by id, name , based on which field the product result display on scree.
6 years ago
If you do not pass any value to the orderby parameter of the ProductSearch method and do not change anything of the ProductLoadAllPaged Storedprocedure then by default it will be ordered by the position for both admin and public site.

You can check SearchProducts method at Libraries==>Nop.Services==>Catalog==>ProductService.cs and ProductLoadAllPaged SP at database.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.