/home/techb158/immovalet.com/platform/plugins/ecommerce/src/Services
NameSizeModeActions
ProductAttributes/-0755rm
Products/-0755rm
HandleApplyCouponService.php158950644editdlrm
HandleApplyPromotionsService.php55670644editdlrm
HandleRemoveCouponService.php16910644editdlrm
HandleShippingFeeService.php85230644editdlrm
StoreCurrenciesService.php16450644editdlrm
StoreProductTagService.php17560644editdlrm
Edit: /home/techb158/immovalet.com/platform/plugins/ecommerce/src/Services/StoreCurrenciesService.php (1645B)
currencyRepository = $currency; } /** * @param array $currencies * @param array $deletedCurrencies * @throws Exception */ public function execute(array $currencies, array $deletedCurrencies) { if ($deletedCurrencies) { $this->currencyRepository->deleteBy([ ['id', 'IN', $deletedCurrencies], ]); } foreach ($currencies as $item) { if (!$item['title'] || !$item['symbol']) { continue; } $item['title'] = substr(strtoupper($item['title']), 0, 3); $item['decimals'] = (int)$item['decimals']; $item['decimals'] = $item['decimals'] < 10 ? $item['decimals'] : 2; if (count($currencies) == 1) { $item['is_default'] = 1; } $currency = $this->currencyRepository->findById($item['id']); if (!$currency) { $this->currencyRepository->create($item); } else { $currency->fill($item); $this->currencyRepository->createOrUpdate($currency); } } } }