Skip to content
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

ProductContentQuery Contrain By IEnumerable<IProductFilter> Does not work #2283

jaydcrowe1989 opened this issue Sep 5, 2019 · 0 comments


Copy link

commented Sep 5, 2019


I am getting an IEnumerable which contains two filters.

I then pass it to the ProductContentQuery Constrain By and it does not find the two products. If I only have one filter in the list then it works fine but it does not work with multiple entries.

IProductFilterGroup filterGroups = this._merchelloHelper.Filters.Product.GetAll().SingleOrDefault(fg => fg.Name == "Brand");

IEnumerable filters = filterGroups?.Filters.Where(f => searchTerms.Contains(f.Name));

PagedCollection products = this._merchelloHelper.ProductContentQuery().ConstrainBy(filters).Execute();

I think this is a bug unless I am doing something wrong?


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.