From 511d69367f2f553ebff06add908e750bdae73132 Mon Sep 17 00:00:00 2001 From: merdan Date: Sat, 15 Oct 2022 15:44:15 +0500 Subject: [PATCH] colorvariant size variant changes --- .../Sarga/API/Http/Resources/Checkout/CartItemProduct.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/Sarga/API/Http/Resources/Checkout/CartItemProduct.php b/packages/Sarga/API/Http/Resources/Checkout/CartItemProduct.php index 09a2c9c3e..9a8b60b82 100644 --- a/packages/Sarga/API/Http/Resources/Checkout/CartItemProduct.php +++ b/packages/Sarga/API/Http/Resources/Checkout/CartItemProduct.php @@ -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), ]; }