diff --git a/packages/Sarga/API/Http/Resources/Catalog/Product.php b/packages/Sarga/API/Http/Resources/Catalog/Product.php index 990d2c438..64fef2c02 100644 --- a/packages/Sarga/API/Http/Resources/Catalog/Product.php +++ b/packages/Sarga/API/Http/Resources/Catalog/Product.php @@ -85,7 +85,7 @@ class Product extends JsonResource { if($this->type == 'configurable') { - $product = $this->variants()->with('product_flat')->orderBy('product_flat.min_price')->first(); + $product = $this->variants()->with('product_flats')->orderBy('product_flat.min_price')->first(); }else{ $product = $this->product ? $this->product : $this;