product detail

This commit is contained in:
merdan 2023-04-30 11:54:22 +05:00
parent c322d4e160
commit 1f129658d0
3 changed files with 4 additions and 6 deletions

View File

@ -76,6 +76,8 @@ class Products extends ProductController
// return $product;
Log::info($product);
return ProductDetail::make($product);
}

View File

@ -67,12 +67,9 @@ class SearchController extends V1Controller
private function searchProducts($key){
// $channel = core()->getRequestedChannelCode();
// $locale = core()->getRequestedLocaleCode();
$locale = core()->getRequestedLocaleCode();
$products = $this->productFlatRepository->getModel()::search(implode(' OR ', $key))
// ->where('channel', $channel)
// ->where('locale', $locale)
->where('locale', $locale)
// ->addSelect(DB::raw("\'product\' as type" ))

View File

@ -33,5 +33,4 @@ class ProductDetail extends Product
];
}
}