|
1C-Bitrix 25.700.0
|
Функции | |
| addNumeratorErrorToWarningString ($_numeratorResult) | |
| getSaleArrayOptionValue (array $list, $index) | |
| getSaleStringOptionFromRequest (HttpRequest $request, string $index) | |
| getSaleBooleanOptionFromRequest (HttpRequest $request, string $index) | |
Переменные | |
| $module_id = 'sale' | |
| $SALE_RIGHT = $APPLICATION->GetGroupRight('sale') | |
| if( $SALE_RIGHT< 'R') if(!Loader::includeModule('sale')||!Loader::includeModule('currency')) | $allowEditPhp = $USER->CanDoOperation('edit_php') |
| $defaultValues = Option::getDefaults('sale') | |
| $showMeasurePathOption = Option::get('sale', 'measurement_path') !== $defaultValues['measurement_path'] | |
| $request = Main\Context::getCurrent()->getRequest() | |
| $lpEnabled = CSaleLocation::isLocationProEnabled() | |
| $lMigrated = CSaleLocation::isLocationProMigrated() | |
| $siteIdList = [] | |
| $siteList = [] | |
| $siteIterator | |
| $siteCount = count($siteList) | |
| $bWasUpdated = false | |
| $currentAction = null | |
| if($request->getPost('Update')==='Y') | $backUrl = (string)$request->get('back_url_settings') |
| if( $request->isPost() && $currentAction==='reset' && $SALE_RIGHT==='W' &&check_bitrix_sessid()) | $optionMainList = [] |
| $optionMainList [] | |
| $arOrderFlags | |
| $numeratorForOrdersId = '' | |
| $numeratorsOrderType = Main\Numerator\Numerator::getOneByType(Registry::REGISTRY_TYPE_ORDER) | |
| if($numeratorsOrderType) | $aTabs |
| $aTabs [] = array("DIV" => "edit3", "TAB" => GetMessage("SALE_TAB_3"), "ICON" => "sale_settings", "TITLE" => GetMessage("SALE_TAB_3_TITLE")) | |
| $tabControl = new CAdminTabControl("tabControl", $aTabs) | |
| $strWarning = "" | |
| if( $request->isPost() &&($currentAction==='save'|| $currentAction==='apply') && $SALE_RIGHT==='W' &&check_bitrix_sessid()) | $statusesWithoutNoChange = [] |
| $arStatuses | |
| $iterator | |
| $delieryStatuses | |
| $delieryStatusesList = Sale\DeliveryStatus::getAllStatusesNames() | |
| if(!empty($delieryStatusesList) &&is_array($delieryStatusesList)) if( $strWarning !=='') elseif($bWasUpdated) | $settings = [] |
| $settings ['use_sale_discount_only'] = Option::get('sale', 'use_sale_discount_only') | |
| $settings ['get_discount_percent_from_base_price'] = Option::get('sale', 'get_discount_percent_from_base_price') | |
| $settings ['discount_apply_mode'] = (int)Option::get('sale', 'discount_apply_mode') | |
| $settings ['product_reserve_condition'] = Option::get('sale', 'product_reserve_condition') | |
| $settings ['product_reserve_clear_period'] = (int)Option::get('sale', 'product_reserve_clear_period') | |
| $settings ['tracking_map_statuses'] = [] | |
| $option = Option::get('sale', 'tracking_map_statuses') | |
| if( $option !=='') if(!is_array($settings['tracking_map_statuses'])) | $settings ['tracking_check_switch'] = Option::get('sale', 'tracking_check_switch') |
| $settings ['tracking_check_period'] = (int)Option::get('sale', 'tracking_check_period') | |
| $optionName = htmlspecialcharsbx($option['ID']) | |
| if(isset( $option[ 'HINT'])) if($option['TYPE']==='checkbox') | else |
| switch($option['TYPE']) | endforeach = Loc::getMessage('SMO_FORMAT_QUANTITY_' . $option) |
| $valDeductOnDelivery = Option::get('sale', 'allow_deduction_on_delivery') | |
| $val = Option::get('sale', 'format_quantity') | |
| $selectList | |
| endfor = Loc::getMessage('SMO_VALUE_PRECISION_' . $i) | |
| if (CBXFeatures::IsFeatureEnabled( 'SaleAffiliate')) = Loc::getMessage('SALE_EXPIRATION_PROCESSING_EVENTS') | |
| $valExpirationProcessingEvents = Option::get('sale', 'expiration_processing_events') | |
| $valOrderHistoryLogLevel = (int)Option::get('sale', 'order_history_log_level') | |
| $valOrderHistoryActionLogLevel = (int)Option::get('sale', 'order_history_action_log_level') | |
| endif = Loc::getMessage('SALE_BASKET_REFRESH_GAP_WARNING') | |
| $refreshGapVal = (int)Option::get('sale', 'basket_refresh_gap') | |
| $rowStyle = ($val === 'Y' ? '' : 'style="display:none;"') | |
| $guestStatuses = Option::get('sale', 'allow_guest_order_view_status') | |
| if( $guestStatuses !=='') if(!is_array($guestStatuses)) | $statusList = array_slice($arStatuses,1) |
| $paths = [] | |
| $serializedPass = Option::get('sale', 'allow_guest_order_view_paths') | |
| $widgetType = Option::get('sale', 'sale_location_selector_appearance') | |
| $modeList = Sale\Discount::getApplyModeList(true) | |
| $recStatuses = Option::get('sale', 'p2p_status_list') | |
| if( $recStatuses !=='') if(!is_array($recStatuses)) | $p2pStatusesList = array_slice($arStatuses, 1) |
| if(CBXFeatures::IsFeatureEnabled('SaleAccounts')) | $arReminder = [] |
| $reminder = Option::get('sale', 'pay_reminder') | |
| if( $reminder !=='') if(!is_array($arReminder)) | $arSubscribeProd = [] |
| $subscribeProd = Option::get('sale', 'subscribe_prod') | |
| if( $subscribeProd !=='') if(!is_array($arSubscribeProd)) | $aTabs2 = [] |
| foreach($siteList as $val) | $tabControl2 = new CAdminViewTabControl('tabControl2', $aTabs2) |
| $differentWeight = Option::get('sale', 'WEIGHT_different_set') === 'Y' | |
| $arUnitList = CSaleMeasure::GetList('W') | |
| if(!is_array($arUnitList)) | $firstSite = true |
| $selectedWeightUnit | |
| foreach ( $arUnitList as $key=> $arM) = Loc::getMessage('SMO_PAR_WEIGHT_UNIT') | |
| $differentAddress = Option::get('sale', 'ADDRESS_different_set') === 'Y' | |
| $location = Option::get('sale', 'location', '', $site['ID']) | |
| else | __pad0__ |
| $dbLocationList | |
| $locationName = (string)$arLocation['COUNTRY_NAME'] | |
| $arLocation ['REGION_NAME'] = (string)$arLocation['REGION_NAME'] | |
| $arLocation ['CITY_NAME'] = (string)$arLocation['CITY_NAME'] | |
| endwhile = htmlspecialcharsbx($locationName) | |
| $sales_zone_countries = SalesZone::getCountriesIds($site['ID']) | |
| $sales_zone_regions = SalesZone::getRegionsIds($site['ID']) | |
| $sales_zone_cities = SalesZone::getCitiesIds($site['ID']) | |
| $dbCountryList = CSaleLocation::GetCountryList(['NAME_LANG' => 'ASC']) | |
| foreach | ( $arRegions as $regionId=> $arRegionName) ( $regionId, $sales_zone_regions) ? ' selected' = htmlspecialcharsbx($arRegionName) |
| $userGroupList = [] | |
| $dbGroups = CGroup::GetList('c_sort', 'asc', ['ANONYMOUS' => 'N']) | |
| $isPayed2AllowDelivery = Option::get('sale', 'status_on_payed_2_allow_delivery') | |
| $shipmentStatuses = [] | |
| $dbRes | |
| $trackingStatuses = Sale\Delivery\Tracking\Manager::getStatusesList() | |
| foreach | ($trackingStatuses as $trackingStatusId=> $trackingStatusName) ("SALE_TRACKING_NOT_USE")?></option ><?php foreach($shipmentStatuses as $statusId = $statusId |
| $filterValues = [] | |
| $serializedFilterValue = Option::get('sale', 'archive_params') | |
| if( $serializedFilterValue !=='') if(!is_array($filterValues)) if(isset( $filterValues[ 'LID']) &&!isset( $filterValues[' @LID'])) if(isset($filterValues['STATUS_ID']) &&!isset($filterValues[' @STATUS_ID'])) | $enableRegularArchive = Option::get('sale', 'regular_archive_active') === 'Y' |
| $archiveLimit = (int)Option::get('sale', 'archive_limit') | |
| $archiveTimeLimit = (int)Option::get('sale', 'archive_time_limit') | |
| $filterValuePeriod = (int)($filterValues['PERIOD'] ?? 0) | |
| if($siteCount > 1) | $statusesList |
| $allStatusNames = Sale\OrderStatus::getAllStatusesNames() | |
| $nonEmptyStatuses = !empty($filterValues['@STATUS_ID']) && is_array($filterValues['@STATUS_ID']) | |
| $optionValue = $filterValues['=PAYED'] ?? '' | |
| $buttonDisable = ($SALE_RIGHT < 'W' ? ' disabled' : '') | |
| $showbasketDiscountConvert = Option::get('sale', 'basket_discount_converted') !== 'Y' && Main\ModuleManager::isModuleInstalled('catalog') | |
| if($showbasketDiscountConvert) | $systemTabs [] |
| if($showbasketDiscountConvert) | $systemTabControl = new CAdminTabControl('saleSysTabControl', $systemTabs, true, true) |
| $firstTop = ' style="margin-top: 0;"' | |
| addNumeratorErrorToWarningString | ( | $_numeratorResult | ) |
См. определение в файле options.php строка 370
| getSaleArrayOptionValue | ( | array | $list, |
| $index ) |
| array | $list | |
| string | int | $index |
См. определение в файле options.php строка 385
| getSaleBooleanOptionFromRequest | ( | HttpRequest | $request, |
| string | $index ) |
См. определение в файле options.php строка 407
| getSaleStringOptionFromRequest | ( | HttpRequest | $request, |
| string | $index ) |
См. определение в файле options.php строка 396
| if($SALE_RIGHT< 'R') if (!Loader::includeModule( 'sale')||!Loader::includeModule( 'currency')) $allowEditPhp = $USER->CanDoOperation('edit_php') |
См. определение в файле options.php строка 31
| $allStatusNames = Sale\OrderStatus::getAllStatusesNames() |
См. определение в файле options.php строка 3477
| $archiveLimit = (int)Option::get('sale', 'archive_limit') |
См. определение в файле options.php строка 3370
| $archiveTimeLimit = (int)Option::get('sale', 'archive_time_limit') |
См. определение в файле options.php строка 3371
| $arLocation[ 'CITY_NAME'] = (string)$arLocation['CITY_NAME'] |
См. определение в файле options.php строка 2801
| $arLocation[ 'REGION_NAME'] = (string)$arLocation['REGION_NAME'] |
См. определение в файле options.php строка 2800
| $arOrderFlags |
См. определение в файле options.php строка 342
| if (CBXFeatures::IsFeatureEnabled( 'SaleAccounts')) $arReminder = [] |
См. определение в файле options.php строка 2414
| $arStatuses |
См. определение в файле options.php строка 1642
| if($reminder !=='') if (!is_array( $arReminder)) $arSubscribeProd = [] |
См. определение в файле options.php строка 2425
| $arUnitList = CSaleMeasure::GetList('W') |
См. определение в файле options.php строка 2642
| if ( $numeratorsOrderType) $aTabs |
См. определение в файле options.php строка 353
| $aTabs[] = array("DIV" => "edit3", "TAB" => GetMessage("SALE_TAB_3"), "ICON" => "sale_settings", "TITLE" => GetMessage("SALE_TAB_3_TITLE")) |
См. определение в файле options.php строка 362
| if($subscribeProd !=='') if (!is_array( $arSubscribeProd)) $aTabs2 = [] |
См. определение в файле options.php строка 2436
| if ( $request->getPost( 'Update')==='Y') $backUrl = (string)$request->get('back_url_settings') |
См. определение в файле options.php строка 90
| $buttonDisable = ($SALE_RIGHT < 'W' ? ' disabled' : '') |
См. определение в файле options.php строка 3595
| $bWasUpdated = false |
См. определение в файле options.php строка 71
| $currentAction = null |
См. определение в файле options.php строка 73
| $dbCountryList = CSaleLocation::GetCountryList(['NAME_LANG' => 'ASC']) |
См. определение в файле options.php строка 2861
| $dbGroups = CGroup::GetList('c_sort', 'asc', ['ANONYMOUS' => 'N']) |
См. определение в файле options.php строка 2993
| $dbLocationList |
См. определение в файле options.php строка 2788
| $dbRes |
См. определение в файле options.php строка 3306
| $defaultValues = Option::getDefaults('sale') |
См. определение в файле options.php строка 32
| $delieryStatuses |
См. определение в файле options.php строка 1668
| $delieryStatusesList = Sale\DeliveryStatus::getAllStatusesNames() |
См. определение в файле options.php строка 1671
| $differentAddress = Option::get('sale', 'ADDRESS_different_set') === 'Y' |
См. определение в файле options.php строка 2698
| $differentWeight = Option::get('sale', 'WEIGHT_different_set') === 'Y' |
См. определение в файле options.php строка 2614
| if($serializedFilterValue !=='') if(!is_array( $filterValues)) if(isset($filterValues['LID']) &&!isset($filterValues[' @LID'])) if (isset( $filterValues[ 'STATUS_ID']) &&!isset( $filterValues[' @STATUS_ID'])) $enableRegularArchive = Option::get('sale', 'regular_archive_active') === 'Y' |
См. определение в файле options.php строка 3369
| $filterValuePeriod = (int)($filterValues['PERIOD'] ?? 0) |
См. определение в файле options.php строка 3415
| $filterValues = [] |
См. определение в файле options.php строка 3349
| $firstSite = true |
См. определение в файле options.php строка 2647
| $firstTop = ' style="margin-top: 0;"' |
См. определение в файле options.php строка 3658
| $guestStatuses = Option::get('sale', 'allow_guest_order_view_status') |
См. определение в файле options.php строка 2056
| $isPayed2AllowDelivery = Option::get('sale', 'status_on_payed_2_allow_delivery') |
См. определение в файле options.php строка 3118
| $iterator |
См. определение в файле options.php строка 1645
| $lMigrated = CSaleLocation::isLocationProMigrated() |
См. определение в файле options.php строка 44
| $location = Option::get('sale', 'location', '', $site['ID']) |
См. определение в файле options.php строка 2729
| $locationName = (string)$arLocation['COUNTRY_NAME'] |
См. определение в файле options.php строка 2799
| $lpEnabled = CSaleLocation::isLocationProEnabled() |
См. определение в файле options.php строка 43
| $modeList = Sale\Discount::getApplyModeList(true) |
См. определение в файле options.php строка 2219
| $module_id = 'sale' |
См. определение в файле options.php строка 3
| $nonEmptyStatuses = !empty($filterValues['@STATUS_ID']) && is_array($filterValues['@STATUS_ID']) |
См. определение в файле options.php строка 3478
| $numeratorForOrdersId = '' |
См. определение в файле options.php строка 347
| $numeratorsOrderType = Main\Numerator\Numerator::getOneByType(Registry::REGISTRY_TYPE_ORDER) |
См. определение в файле options.php строка 348
| $option = Option::get('sale', 'tracking_map_statuses') |
См. определение в файле options.php строка 1711
| if ($request->isPost() &&$currentAction==='reset' &&$SALE_RIGHT==='W' &&check_bitrix_sessid()) $optionMainList = [] |
См. определение в файле options.php строка 137
| $optionMainList[] |
См. определение в файле options.php строка 138
| $optionName = htmlspecialcharsbx($option['ID']) |
См. определение в файле options.php строка 1735
| $optionValue = $filterValues['=PAYED'] ?? '' |
См. определение в файле options.php строка 3512
| $p2pStatusesList = array_slice($arStatuses, 1) |
См. определение в файле options.php строка 2259
| $paths = [] |
См. определение в файле options.php строка 2080
| $recStatuses = Option::get('sale', 'p2p_status_list') |
См. определение в файле options.php строка 2249
| $refreshGapVal = (int)Option::get('sale', 'basket_refresh_gap') |
См. определение в файле options.php строка 2002
| $reminder = Option::get('sale', 'pay_reminder') |
См. определение в файле options.php строка 2415
| $request = Main\Context::getCurrent()->getRequest() |
См. определение в файле options.php строка 35
| $rowStyle = ($val === 'Y' ? '' : 'style="display:none;"') |
См. определение в файле options.php строка 2044
| $SALE_RIGHT = $APPLICATION->GetGroupRight('sale') |
См. определение в файле options.php строка 18
| $sales_zone_cities = SalesZone::getCitiesIds($site['ID']) |
См. определение в файле options.php строка 2849
| $sales_zone_countries = SalesZone::getCountriesIds($site['ID']) |
См. определение в файле options.php строка 2847
| $sales_zone_regions = SalesZone::getRegionsIds($site['ID']) |
См. определение в файле options.php строка 2848
| $selectedWeightUnit |
См. определение в файле options.php строка 2660
| $selectList |
См. определение в файле options.php строка 1794
| $serializedFilterValue = Option::get('sale', 'archive_params') |
См. определение в файле options.php строка 3350
| $serializedPass = Option::get('sale', 'allow_guest_order_view_paths') |
См. определение в файле options.php строка 2081
| if(!empty( $delieryStatusesList) &&is_array( $delieryStatusesList)) if($strWarning !=='') elseif ( $bWasUpdated) $settings = [] |
См. определение в файле options.php строка 1704
| $settings[ 'discount_apply_mode'] = (int)Option::get('sale', 'discount_apply_mode') |
См. определение в файле options.php строка 1707
| $settings[ 'get_discount_percent_from_base_price'] = Option::get('sale', 'get_discount_percent_from_base_price') |
См. определение в файле options.php строка 1706
| $settings[ 'product_reserve_clear_period'] = (int)Option::get('sale', 'product_reserve_clear_period') |
См. определение в файле options.php строка 1709
| $settings[ 'product_reserve_condition'] = Option::get('sale', 'product_reserve_condition') |
См. определение в файле options.php строка 1708
| $settings[ 'tracking_check_period'] = (int)Option::get('sale', 'tracking_check_period') |
См. определение в файле options.php строка 1721
| if($option !=='') if (!is_array( $settings[ 'tracking_map_statuses'])) $settings[ 'tracking_check_switch'] = Option::get('sale', 'tracking_check_switch') |
См. определение в файле options.php строка 1720
| $settings[ 'tracking_map_statuses'] = [] |
См. определение в файле options.php строка 1710
| $settings[ 'use_sale_discount_only'] = Option::get('sale', 'use_sale_discount_only') |
См. определение в файле options.php строка 1705
| $shipmentStatuses = [] |
См. определение в файле options.php строка 3305
| $showbasketDiscountConvert = Option::get('sale', 'basket_discount_converted') !== 'Y' && Main\ModuleManager::isModuleInstalled('catalog') |
См. определение в файле options.php строка 3615
| $showMeasurePathOption = Option::get('sale', 'measurement_path') !== $defaultValues['measurement_path'] |
См. определение в файле options.php строка 33
| $siteCount = count($siteList) |
См. определение в файле options.php строка 69
| $siteIdList = [] |
См. определение в файле options.php строка 46
| $siteIterator |
См. определение в файле options.php строка 48
| $siteList = [] |
См. определение в файле options.php строка 47
| if ( $siteCount > 1) $statusesList |
См. определение в файле options.php строка 3473
| if ($request->isPost() &&( $currentAction==='save'||$currentAction==='apply') &&$SALE_RIGHT==='W' &&check_bitrix_sessid()) $statusesWithoutNoChange = [] |
См. определение в файле options.php строка 1641
| if($guestStatuses !=='') if (!is_array( $guestStatuses)) $statusList = array_slice($arStatuses,1) |
См. определение в файле options.php строка 2065
| $strWarning = "" |
См. определение в файле options.php строка 369
| $subscribeProd = Option::get('sale', 'subscribe_prod') |
См. определение в файле options.php строка 2426
| if ( $showbasketDiscountConvert) $systemTabControl = new CAdminTabControl('saleSysTabControl', $systemTabs, true, true) |
См. определение в файле options.php строка 3653
| if ( $showbasketDiscountConvert) $systemTabs[] |
См. определение в файле options.php строка 3637
| $tabControl = new CAdminTabControl("tabControl", $aTabs) |
См. определение в файле options.php строка 367
| foreach ( $siteList as $val) $tabControl2 = new CAdminViewTabControl('tabControl2', $aTabs2) |
См. определение в файле options.php строка 2445
| $trackingStatuses = Sale\Delivery\Tracking\Manager::getStatusesList() |
См. определение в файле options.php строка 3327
| $userGroupList = [] |
См. определение в файле options.php строка 2992
| $val = Option::get('sale', 'format_quantity') |
См. определение в файле options.php строка 1793
| $valDeductOnDelivery = Option::get('sale', 'allow_deduction_on_delivery') |
См. определение в файле options.php строка 1785
| $valExpirationProcessingEvents = Option::get('sale', 'expiration_processing_events') |
См. определение в файле options.php строка 1875
| $valOrderHistoryActionLogLevel = (int)Option::get('sale', 'order_history_action_log_level') |
См. определение в файле options.php строка 1900
| $valOrderHistoryLogLevel = (int)Option::get('sale', 'order_history_log_level') |
См. определение в файле options.php строка 1888
| $widgetType = Option::get('sale', 'sale_location_selector_appearance') |
См. определение в файле options.php строка 2160
| foreach ($arRegions as $regionId=> $arRegionName)($regionId, $sales_zone_regions) ? ' selected' | ( | $arRegions as, | |
| $arRegionName ) = htmlspecialcharsbx($arRegionName) |
См. определение в файле options.php строка 2877
| foreach ( $trackingStatuses as $trackingStatusId=> $trackingStatusName)("SALE_TRACKING_NOT_USE")?></option ><?php foreach( $shipmentStatuses as $statusId | ( | $trackingStatuses as, | |
| $trackingStatusName ) = $statusId |
См. определение в файле options.php строка 3329
| else __pad0__ |
См. определение в файле options.php строка 2783
| if(isset($option['HINT'])) if ( $option[ 'TYPE']==='checkbox') else |
См. определение в файле options.php строка 1750
| endfor = Loc::getMessage('SMO_VALUE_PRECISION_' . $i) |
См. определение в файле options.php строка 1827
| endforeach = Loc::getMessage('SMO_FORMAT_QUANTITY_' . $option) |
См. определение в файле options.php строка 1783
| endif = Loc::getMessage('SALE_BASKET_REFRESH_GAP_WARNING') |
См. определение в файле options.php строка 1992
| endwhile = htmlspecialcharsbx($locationName) |
См. определение в файле options.php строка 2824
| foreach($arUnitList as $key=> $arM) | ( | $arUnitList as, | |
| $arM ) = Loc::getMessage('SMO_PAR_WEIGHT_UNIT') |
См. определение в файле options.php строка 2666
| if($backUrl !=='') | ( | CBXFeatures::IsFeatureEnabled('SaleAffiliate') | ) | = Loc::getMessage('SALE_EXPIRATION_PROCESSING_EVENTS') |
См. определение в файле options.php строка 1849