diff --git a/core/lib/Thelia/Core/Template/Loop/Product.php b/core/lib/Thelia/Core/Template/Loop/Product.php index fbf5303fa..5417446ac 100644 --- a/core/lib/Thelia/Core/Template/Loop/Product.php +++ b/core/lib/Thelia/Core/Template/Loop/Product.php @@ -64,6 +64,7 @@ class Product extends BaseI18nLoop implements PropelSearchLoopInterface, SearchL ) ), Argument::createIntListTypeArgument('category'), + Argument::createIntListTypeArgument('brand'), Argument::createIntListTypeArgument('category_default'), Argument::createBooleanTypeArgument('new'), Argument::createBooleanTypeArgument('promo'), @@ -327,6 +328,12 @@ class Product extends BaseI18nLoop implements PropelSearchLoopInterface, SearchL $search->filterById($this->request->get("product_id"), Criteria::NOT_IN); } + $brand_id = $this->getBrand(); + + if ($brand_id !== null) { + $search->filterByBrandId($brand_id, Criteria::IN); + } + $current_category = $this->getCurrent_category(); if ($current_category === true) {