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