colorvariant size variant changes
This commit is contained in:
parent
9ed5f1f75d
commit
d38625c74c
|
|
@ -15,14 +15,14 @@ class ColorVariant extends Product
|
|||
$product = $this->product ? $this->product : $this;
|
||||
|
||||
return [
|
||||
'id' => $product->id,
|
||||
'type' => $product->type,
|
||||
'name' => $product->name,
|
||||
'description' => $product->description,
|
||||
'images' => ProductImage::collection($product->images),
|
||||
'size_variants' => SizeVariant::collection($product->variants),
|
||||
'id' => $product->id,
|
||||
'type' => $product->type,
|
||||
'name' => $product->name,
|
||||
'description' => $product->description,
|
||||
'brand' => $product->brand->name ?? '',
|
||||
'images' => ProductImage::collection($product->images),
|
||||
'size_variants' => SizeVariant::collection($product->variants),
|
||||
$this->merge($this->specialPriceInfo()),
|
||||
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ class Product extends JsonResource
|
|||
'id' => $product->id,
|
||||
'type' => $product->type,
|
||||
'name' => $product->name,
|
||||
// 'description' => $product->description,
|
||||
'description' => $product->description,
|
||||
// 'is_wishlisted' => $this->isWishlisted($product), //todo transfer to mobile
|
||||
// 'is_item_in_cart' => \Cart::hasProduct($product),//todo transfer to mobile
|
||||
// 'shop_title' => $this->shop_title,
|
||||
|
|
|
|||
Loading…
Reference in New Issue