Get all (featured) products in a category and all it's subcategories


I have a CategoryEntity object and I want to search it and all subcategories for all products, that are featured.

  1. How do I look in the actual category and all subcategories
  2. How do I filter for the featured attribute?

Is this possible by just a Criteria and some filtering, or do I need a more complex attempt with a database Request?

Best regards


it was pretty easy.

    $criteria = new Criteria();
    $criteria->addFilter(new AndFilter([
        new EqualsFilter('markAsTopseller', true)

Best regards