colorvariant size variant changes

This commit is contained in:
merdan 2022-10-14 17:06:19 +05:00
parent d38625c74c
commit 0e71aee1f1
1 changed files with 3 additions and 4 deletions

View File

@ -60,10 +60,9 @@ class Products extends ProductController
public function product($id){
$product = $this->productRepository->select('id','attribute_family_id','type','brand_id')
->with(['brand','related_products:id,type,attribute_family_id','variants'=>function($query)
{
$query->with(['product_flats' => function($qf)
{
->with(['brand','related_products'=> fn($rp) => $rp->select('id','type','attribute_family_id','brand_id')->with('brand'),
'variants' => function($query){
$query->with(['product_flats' => function($qf){
$channel = core()->getRequestedChannelCode();
$locale = 'tm';//core()->getRequestedLocaleCode();