From 78bdc4c3d249032b42c06df77904ee3cd936df18 Mon Sep 17 00:00:00 2001 From: RickAcb <8141903+RickAcb@users.noreply.github.com> Date: Wed, 27 Nov 2024 18:24:21 +0100 Subject: [PATCH] Update ProductsFilter.php Added extra where for filtering on the published state of products. --- components/ProductsFilter.php | 1 + 1 file changed, 1 insertion(+) diff --git a/components/ProductsFilter.php b/components/ProductsFilter.php index d70ba1ded..bc299f3ea 100644 --- a/components/ProductsFilter.php +++ b/components/ProductsFilter.php @@ -439,6 +439,7 @@ protected function setPriceRange() protected function setBrands() { $brands = DB::table('offline_mall_products') + ->where('offline_mall_products.published', '=', true) ->whereIn('offline_mall_category_product.category_id', $this->categories->pluck('id')) ->select('offline_mall_brands.*') ->distinct()