diff --git a/packages/Sarga/API/Http/Resources/Catalog/Product.php b/packages/Sarga/API/Http/Resources/Catalog/Product.php index 9b7e10ea9..b9962352a 100644 --- a/packages/Sarga/API/Http/Resources/Catalog/Product.php +++ b/packages/Sarga/API/Http/Resources/Catalog/Product.php @@ -215,6 +215,7 @@ class Product extends JsonResource 'color_count' => $this->variants->groupBy('color')->count(), ]; + Log::info($this->variants); if( $special_variant = $this->variants->whereNotNull('special_price')->sortBy('special_price')->first()){ $data = array_merge($data, [ 'special_price' => $special_variant->special_price,