New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SortBy Price #2138

stefano-skemalog opened this Issue Mar 12, 2018 · 2 comments


None yet
3 participants

stefano-skemalog commented Mar 12, 2018

Hi all,
any of search product functions can sort result by price.
I need to sort result by saleprice, how can I do this?

Thank you


This comment has been minimized.


cwbrandsdal commented Mar 16, 2018

Something like this?

var merchello = new MerchelloHelper();

var searchTerm = Request.QueryString["q"];

var productQuery = merchello.Query.Product;
var result = productQuery.Search(searchTerm, 1, long.MaxValue);

var allProducts = Merchello.ProductContentQuery().Execute().Items.OrderBy(p => p.Price);

This comment has been minimized.


stefano-skemalog commented Mar 16, 2018

I was referring to the functions with paged results.
However I have implemented the feature and submitted to pull requests.

@YodasMyDad YodasMyDad closed this Oct 17, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment