From 47a7c80a32b6ac603fd5e8d662c826e039e4ecc6 Mon Sep 17 00:00:00 2001 From: merdan Date: Thu, 22 Sep 2022 13:20:35 +0500 Subject: [PATCH] menu Controller --- .../API/Http/Resources/Catalog/Product.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/Sarga/API/Http/Resources/Catalog/Product.php b/packages/Sarga/API/Http/Resources/Catalog/Product.php index e86b7772a..6e005436c 100644 --- a/packages/Sarga/API/Http/Resources/Catalog/Product.php +++ b/packages/Sarga/API/Http/Resources/Catalog/Product.php @@ -88,19 +88,19 @@ class Product extends JsonResource $typeInstance = $product->getTypeInstance(); return [ - 'images' => ProductImage::collection($product->images)), + 'images' => ProductImage::collection($product->images), 'price' => (double) core()->convertPrice($typeInstance->getMinimalPrice()), 'formatted_price' => core()->currency($typeInstance->getMinimalPrice()), - 'special_price' => $this->when( - $typeInstance->haveSpecialPrice(), - (double) core()->convertPrice($typeInstance->getSpecialPrice()) - ), - 'formatted_special_price' => $this->when( - $typeInstance->haveSpecialPrice(), - core()->currency($typeInstance->getSpecialPrice()) - ), +// 'special_price' => $this->when( +// $typeInstance->haveSpecialPrice(), +// (double) core()->convertPrice($typeInstance->getSpecialPrice()) +// ), +// 'formatted_special_price' => $this->when( +// $typeInstance->haveSpecialPrice(), +// core()->currency($typeInstance->getSpecialPrice()) +// ), 'regular_price' => $this->when( $typeInstance->haveSpecialPrice(), (double) core()->convertPrice($typeInstance->getMaximumPrice())