From b3268d162e655a7bd46975dd1439d020cc9e437a Mon Sep 17 00:00:00 2001 From: merdan Date: Thu, 22 Sep 2022 13:31:38 +0500 Subject: [PATCH] menu Controller --- packages/Sarga/API/Http/Resources/Catalog/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Sarga/API/Http/Resources/Catalog/Product.php b/packages/Sarga/API/Http/Resources/Catalog/Product.php index c6ec9452a..24af419ac 100644 --- a/packages/Sarga/API/Http/Resources/Catalog/Product.php +++ b/packages/Sarga/API/Http/Resources/Catalog/Product.php @@ -83,7 +83,7 @@ class Product extends JsonResource */ private function specialPriceInfo() { - $product = $this->type == 'configurable' ? $product->getTypeInstance()->getMinPriceVariant()->product : $this->product; + $product = $this->type == 'configurable' ? $this->product->getTypeInstance()->getMinPriceVariant()->product : $this->product; $typeInstance = $product->getTypeInstance();