From 75b07c8abf597dbb02d8c19b1478e5170ce09718 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Tue, 6 Apr 2021 15:08:50 +0300 Subject: [PATCH] fixed gg-theme ajax price --- addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php b/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php index dc8a452f8..5d06c53b3 100644 --- a/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php +++ b/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php @@ -8,6 +8,7 @@ use Illuminate\Support\Facades\DB; use Intervention\Image\Facades\Image; use Visiosoft\AdvsModule\Adv\Contract\AdvRepositoryInterface; use Anomaly\Streams\Platform\Entry\EntryRepository; +use Visiosoft\AdvsModule\Support\Command\Currency; use Visiosoft\CatsModule\Category\CategoryModel; use Visiosoft\LocationModule\City\CityModel; use Visiosoft\LocationModule\Country\CountryModel; @@ -419,6 +420,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface foreach ($ads as $index => $ad) { $ads[$index]->detail_url = $this->model->getAdvDetailLinkByModel($ad, 'list'); + $ads[$index]->currency_price = app(Currency::class)->format($ad->price,$ad->currency); $ads[$index] = $this->model->AddAdsDefaultCoverImage($ad); }