product detail
This commit is contained in:
parent
e2bec0b2c1
commit
7fe5e1801c
|
|
@ -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($product->related_products->where('status',1)),
|
'color_variants' => ColorVariant::collection($this->related_products),
|
||||||
'size_variants' => SizeVariant::collection($product->variants->where('status',1)),
|
'size_variants' => SizeVariant::collection($this->variants),
|
||||||
/* special price cases */
|
/* special price cases */
|
||||||
$this->merge($this->specialPriceInfo()),
|
$this->merge($this->specialPriceInfo()),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ class SizeVariant extends ProductDetail
|
||||||
'name' => $product->name,
|
'name' => $product->name,
|
||||||
'size' => $flat->size ?? 0,
|
'size' => $flat->size ?? 0,
|
||||||
'size_label' => $flat->size_label ?? null,
|
'size_label' => $flat->size_label ?? null,
|
||||||
|
'status' => $flat->status,
|
||||||
/* special price cases */
|
/* special price cases */
|
||||||
$this->merge($this->specialPriceInfo()),
|
$this->merge($this->specialPriceInfo()),
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue