product detail
This commit is contained in:
parent
98deea74d0
commit
c322d4e160
|
|
@ -25,8 +25,8 @@ class ProductDetail extends Product
|
||||||
'brand' => $product->brand->name ?? '',
|
'brand' => $product->brand->name ?? '',
|
||||||
'color' => $product->color,
|
'color' => $product->color,
|
||||||
'images' => ProductImage::collection($product->images),
|
'images' => ProductImage::collection($product->images),
|
||||||
'color_variants' => ColorVariant::collection($this->related_products->where('status',1)->whereHas("product_flats")),
|
'color_variants' => ColorVariant::collection($this->related_products->where('status',1)),
|
||||||
'size_variants' => SizeVariant::collection($this->variants->where('status',1)->whereHas("product_flats")),
|
'size_variants' => SizeVariant::collection($this->variants->where('status',1)),
|
||||||
/* special price cases */
|
/* special price cases */
|
||||||
$this->merge($this->specialPriceInfo()),
|
$this->merge($this->specialPriceInfo()),
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue