Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon 692 posts 1068 karma points
    Sep 30, 2016 @ 08:50
    Simon
    1

    Get Products From multiple Collections

    Hi Guys,

    Does anyone can help me out figuring out how I can figuring out getting such products from multiple collections?

    Till now, I am getting the ids of the categories that the user want to search by and get those categories:

     var categories = _umbracoHelperService.TypedContent(umbracoHelper, ConstantValues.ProductsPageId).Children().Where(x => x.DocumentTypeAlias == ConstantValues.Document_Type_Alias_Product_Category && umbracoCategories.Contains(x.Id)).Select(x => (ProductCategory)x);
    

    Now, I want to get those products from the ProductContentListView of those categories in order to match name with search text and also order by.. but don't know how...

    I need this for pagination so I cannot get list before queryting.

    Any help would be much appreciated.

    thank you.

Please Sign in or register to post replies

Write your reply to:

Draft