diff --git a/packages/Sarga/API/Http/Controllers/SearchController.php b/packages/Sarga/API/Http/Controllers/SearchController.php index aeb5b1e8a..9cfb4bed9 100644 --- a/packages/Sarga/API/Http/Controllers/SearchController.php +++ b/packages/Sarga/API/Http/Controllers/SearchController.php @@ -70,12 +70,12 @@ class SearchController extends V1Controller $locale = core()->getRequestedLocaleCode(); $products = $this->productFlatRepository->getModel()::search(implode(' OR ', $key)) - ->where('status', 1) ->where('visible_individually', 1) ->where('channel', $channel) ->where('locale', $locale) ->take(10) ->query(fn ($query) => $query->select('id','name','product_id','description') + ->where('status', 1) // ->addSelect(DB::raw("\'product\' as type" )) ->orderBy('name')) ->get();