diff --git a/packages/Sarga/API/Http/Controllers/Products.php b/packages/Sarga/API/Http/Controllers/Products.php index 8e5984eb8..9c2046c5c 100644 --- a/packages/Sarga/API/Http/Controllers/Products.php +++ b/packages/Sarga/API/Http/Controllers/Products.php @@ -41,7 +41,7 @@ class Products extends ProductController */ public function get($id) { - return ($product = $this->productRepository->findl($id))? + return ($product = $this->productRepository->find($id))? new ProductResource($product) : response()->json(['error' => 'not found'],404); } diff --git a/packages/Webkul/Core/src/Core.php b/packages/Webkul/Core/src/Core.php index 9ad916d78..5caa7e87b 100755 --- a/packages/Webkul/Core/src/Core.php +++ b/packages/Webkul/Core/src/Core.php @@ -717,7 +717,7 @@ class Core ? $this->getAllCurrencies()->where('code', $currencyCode)->first() : $this->getCurrentCurrency(); - $formatter = new \NumberFormatter(app()->getLocale(), \NumberFormatter::CURRENCY); + $formatter = new \NumberFormatter('tr_TR', \NumberFormatter::CURRENCY); if ($symbol = $currency->symbol) { if ($this->currencySymbol($currency) == $symbol) { @@ -746,7 +746,7 @@ class Core $price = 0; } - $formater = new \NumberFormatter(app()->getLocale(), \NumberFormatter::CURRENCY); + $formater = new \NumberFormatter('tr_TR', \NumberFormatter::CURRENCY); if ($symbol = $this->getBaseCurrency()->symbol) { if ($this->currencySymbol($this->getBaseCurrencyCode()) == $symbol) {