Не нашли ответы на свои вопросы в наших публикациях? Задайте вопрос в службу техподдержки!
// init.php AddEventHandler('acrit.import', 'OnAfterFillData', static function (\Acrit\Import\Import $profile, &$arSectFields, &$arIBFields, &$arItemProduct, &$arItemPrices, &$arItemPricesCurrencies, &$arItemStores) { $profileId = $profile->getArProfile()['ID']; if ($profileId == 1) { // для первого профиля $arItemProduct['PURCHASING_CURRENCY'] = 'EUR'; // для закупочной цены ставим "евро" if (count($arItemPrices) > 0) { foreach ($arItemPrices as $price) { $arItemPricesCurrencies[ $price['CATALOG_GROUP_ID'] ] = 'RUB'; // для всех остальных цен - рубли } } } });
Назад в раздел