colorvariant size variant changes

This commit is contained in:
merdan 2022-10-15 15:44:15 +05:00
parent 5ae22decdd
commit 511d69367f
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class CartItemProduct extends JsonResource
return [
'id' => $this->id,
'name' => $this->name,
'images' => ProductImage::collection($this->parent?$this->parent->imaeges:$this->images),
'images' => ProductImage::collection($this->parent?$this->parent->images:$this->images),
/* super attributes */
$this->mergeWhen(!empty($this->parent && $this->parent->super_attributes), [
'super_attributes' => $this->super_attributes($this->parent->super_attributes),
@ -30,7 +30,7 @@ class CartItemProduct extends JsonResource
return [
'id' => $this->id,
'name' => $this->name,
'images' => ProductImage::collection($this->parent?$this->parent->imaeges:$this->images),
'images' => ProductImage::collection($this->parent?$this->parent->images:$this->images),
];
}