search suggestions start

This commit is contained in:
merdan 2022-04-16 20:39:54 +05:00
parent 314ecbaa52
commit cf486b000e
1 changed files with 1 additions and 2 deletions

View File

@ -139,14 +139,13 @@ class Products extends ProductController
$locale = core()->getRequestedLocaleCode();
$products = app(ProductFlatRepository::class)->getModel()::search(implode(' OR ', $queries))
->select('product_id','name')
->where('status', 1)
->where('visible_individually', 1)
->where('channel', $channel)
->where('locale', $locale)
->orderBy('product_id', 'desc')
->limit(10)
->get();
->get('product_id','name');
return $products->merge($brands);