To be noted, sorting options are fixed. If you want to sort by any other property than those, then you have to add extra enum property in ProductSortingEnum and modify stored procedure ProductLoadAllPaged.
To be noted, sorting options are fixed. If you want to sort by any other property than those, then you have to add extra enum property in ProductSortingEnum and modify stored procedure ProductLoadAllPaged.
I need to change the method public virtual ActionResult OrderList(DataSourceRequest command, OrderListModel model), what would be ranking by product property in the order, date criterion
You need to modify the Model, Controller, and View to support the additional search criteria, and then also modify the ProductService.SearchProducts() and modify stored procedure ProductLoadAllPaged.
be careful from doing changement directly to the standard code, the best approach is to create plugins for any changement, otherwise, you may face a big problems during migrations especially that the nopcommerce code is changing so much since the version 4.0
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.