isSetupModulePage(); if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/bitrix/php_interface/retailcrm/export_setup.php')) { require_once($_SERVER['DOCUMENT_ROOT'] . '/bitrix/php_interface/retailcrm/export_setup.php'); return; } if (!check_bitrix_sessid()) { return; } __IncludeLang(GetLangFileName( $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/intaro.retailcrm/lang/', '/icml_export_setup.php') ); $basePriceId = RetailcrmConfigProvider::getCrmBasePrice($_REQUEST['PROFILE_ID']); $priceTypes = $settingsService->priceTypes; $iblockFieldsName = $settingsService->getIblockFieldsNames(); $iblockPropertiesHint = $settingsService->getHintProps(); $units = $settingsService->getUnitsNames(); $hintUnit = $settingsService->getHintUnit(); //highloadblock if (CModule::IncludeModule('highloadblock')) { $hlblockModule = true; $hlBlockList = $settingsService->getHlBlockList(); } if (($ACTION === 'EXPORT' || $ACTION === 'EXPORT_EDIT' || $ACTION === 'EXPORT_COPY') && $STEP === 1) { $SETUP_FILE_NAME = $settingsService->setupFileName; $SETUP_PROFILE_NAME = $settingsService->setupProfileName; $iblockProperties = $settingsService->getIblockPropsPreset(); $loadPurchasePrice = $settingsService->loadPurchasePrice; $iblockExport = $settingsService->iblockExport; $loadNonActivity = $settingsService->loadNonActivity; if ($iblockExport) { $maxOffersValue = $settingsService->getSingleSetting('maxOffersValue'); } $settingsService->setProps(); $iblockPropertySku = $settingsService->iblockPropertySku; $iblockPropertyUnitSku = $settingsService->iblockPropertyUnitSku; $iblockPropertyProduct = $settingsService->iblockPropertyProduct; $iblockPropertyUnitProduct = $settingsService->iblockPropertyUnitProduct; $boolAll = false; $intCountChecked = 0; $intCountAvailIBlock = 0; } if (!isset($iblockExport) || !is_array($iblockExport)) { $iblockExport = []; } [$arIBlockList, $intCountChecked, $intCountAvailIBlock, $isExportIblock] = $settingsService->getSettingsForIblocks(); if (count($iblockExport) !== 0) { if ($intCountChecked === $intCountAvailIBlock) { $boolAll = true; } } else { $intCountChecked = $intCountAvailIBlock; $boolAll = true; } //Проверка на ошибки $STEP = $settingsService->returnIfErrors($STEP, $SETUP_FILE_NAME, $SETUP_PROFILE_NAME); //Отображение формы if ($STEP === 1) { ?>



>

onclick="checkOne(this,);" >

> getIblockPropsNames() as $propertyKey => $property) { $productSelected = false; ?>
isHlSelected( $propertyKey, $arIBlock['ID'], $productHlTableName, '_product' ) ) {?> isHlSelected( $propertyKey, $arIBlock['ID'], $skuHlTableName ) ) { ?>







  >

  >