diff --git a/Plugin/GetProductsFromCategoryBlockPlugin.php b/Plugin/GetProductsFromCategoryBlockPlugin.php index f96eb994..8c6bf7ac 100644 --- a/Plugin/GetProductsFromCategoryBlockPlugin.php +++ b/Plugin/GetProductsFromCategoryBlockPlugin.php @@ -43,7 +43,7 @@ public function afterGetLoadedProductCollection( } $i = 0; foreach ($collection as $product) { - if ($maximumCategoryProducts > 0 && $i > $maximumCategoryProducts) { + if ($i > $maximumCategoryProducts) { break; }