product detail
This commit is contained in:
parent
c322d4e160
commit
1f129658d0
|
|
@ -76,6 +76,8 @@ class Products extends ProductController
|
||||||
|
|
||||||
// return $product;
|
// return $product;
|
||||||
|
|
||||||
|
Log::info($product);
|
||||||
|
|
||||||
return ProductDetail::make($product);
|
return ProductDetail::make($product);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,12 +67,9 @@ class SearchController extends V1Controller
|
||||||
|
|
||||||
private function searchProducts($key){
|
private function searchProducts($key){
|
||||||
|
|
||||||
// $channel = core()->getRequestedChannelCode();
|
$locale = core()->getRequestedLocaleCode();
|
||||||
|
|
||||||
// $locale = core()->getRequestedLocaleCode();
|
|
||||||
$products = $this->productFlatRepository->getModel()::search(implode(' OR ', $key))
|
$products = $this->productFlatRepository->getModel()::search(implode(' OR ', $key))
|
||||||
// ->where('channel', $channel)
|
->where('locale', $locale)
|
||||||
// ->where('locale', $locale)
|
|
||||||
|
|
||||||
// ->addSelect(DB::raw("\'product\' as type" ))
|
// ->addSelect(DB::raw("\'product\' as type" ))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,5 +33,4 @@ class ProductDetail extends Product
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue