1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Файл options.php

См. исходные тексты.

Переменные

 $module_id = 'catalog'
const CATALOG_NEW_OFFERS_IBLOCK_NEED = -1
 $accessController = AccessController::getCurrent()
 $bReadOnly = !$accessController->check(ActionDictionary::ACTION_CATALOG_SETTINGS_ACCESS)
 $useSaleDiscountOnly = false
 $saleIsInstalled = ModuleManager::isModuleInstalled('sale')
if($saleIsInstalled) $crmInstalled = ModuleManager::isModuleInstalled('crm')
 $applyDiscSaveModeList = CCatalogDiscountSave::GetApplyModeList(true)
 $saleSettingsUrl = 'settings.php?lang='.LANGUAGE_ID.'&mid=sale&mid_menu=1'
 $enabledCommonCatalog = Catalog\Config\Feature::isCommonProductProcessingEnabled()
 $canUseYandexMarket = Catalog\Config\Feature::isCanUseYandexExport()
if($_SERVER $arAllOptions ['REQUEST_METHOD']=='GET' &&!empty($_REQUEST['RestoreDefaults']) &&! $bReadOnly &&check_bitrix_sessid())
if($canUseYandexMarket) $strWarning = ""
 $strOK = ""
 $aTabs
if($USER->IsAdmin()) $tabControl = new CAdminTabControl("tabControl", $aTabs, true, true)
 $currentSettings = array()
 $currentSettings ['discsave_apply'] = Option::get('catalog', 'discsave_apply')
 $currentSettings ['get_discount_percent_from_base_price'] = Option::get(($saleIsInstalled ? 'sale' : 'catalog'), 'get_discount_percent_from_base_price')
 $currentSettings ['save_product_with_empty_price_range'] = Option::get('catalog', 'save_product_with_empty_price_range')
 $currentSettings ['use_offer_marking_code_group'] = Option::get('catalog', 'use_offer_marking_code_group')
 $currentSettings ['default_product_vat_included'] = Option::get('catalog', 'default_product_vat_included')
 $currentSettings ['enable_processing_deprecated_events'] = Option::get('catalog', 'enable_processing_deprecated_events')
 $currentSettings ['product_card_slider_enabled'] = Option::get('catalog', 'product_card_slider_enabled')
 $currentSettings ['show_store_shipping_center'] = Option::get('catalog', 'show_store_shipping_center')
 $strShowCatalogTab = Option::get('catalog', 'show_catalog_tab_with_offers')
 $strSaveProductWithoutPrice = Option::get('catalog', 'save_product_without_price')
 $strQuantityTrace = Option::get('catalog', 'default_quantity_trace')
 $strAllowCanBuyZero = Option::get('catalog', 'default_can_buy_zero')
 $strSubscribe = Option::get('catalog', 'default_subscribe')
 $strEnableReservation = Option::get('catalog', 'enable_reservation')
 $strUseStoreControl = Option::get('catalog', 'default_use_store_control')
 $strShowOffersIBlock = Option::get('catalog', 'product_form_show_offers_iblock')
 $strSimpleSearch = Option::get('catalog', 'product_form_simple_search')
 $searchShowOfferName = Option::get('catalog', 'product_form_show_offer_name')
 if ( $enabledCommonCatalog) = Loc::getMessage("CAT_SAVE_PRODUCTS_WITHOUT_PRICE")
 endif = $check
if($saleIsInstalled &&Loader::includeModule('sale')) if(! $crmInstalled) if(! $useSaleDiscountOnly $enableViewedProducts ) = Option::get('catalog', 'enable_viewed_products')
 $viewedTime = (int)Option::get('catalog', 'viewed_time')
 $viewedCount = (int)Option::get('catalog', 'viewed_count')
 $viewedPeriod = (int)Option::get('catalog', 'viewed_period')
 $styleViewed = ($enableViewedProducts == 'Y' ? 'table-row' : 'none')
for($i=0, $intCount=count($arAllOptions); $i< $intCount; $i++) $default_outfile_action = Option::get('catalog', 'default_outfile_action')
 $arVal = array()
 $strVal = Option::get('catalog', 'allowed_product_fields')
if($strVal !='') $productFields
if($strVal !='') $priceFields = CCatalogCSVSettings::getSettingsFields(CCatalogCSVSettings::FIELDS_PRICE)
if($strVal !='') $sectionFields = CCatalogCSVSettings::getSettingsFields(CCatalogCSVSettings::FIELDS_SECTION)
 $arVATRef = CatalogGetVATArray(array(), true)
 $arCatalogList = array()
 $arIBlockSitesList = array()
 $arIBlockFullInfo = array()
 $arRecurring = array()
 $arRecurringKey = array()
 $rsIBlocks = CIBlock::GetList(array('IBLOCK_TYPE' => 'ASC','ID' => 'ASC'))
while($arIBlock=$rsIBlocks->Fetch()) $catalogIterator
 $arIBlockTypeIDList = array()
 $arIBlockTypeNameList = array()
 $rsIBlockTypes = CIBlockType::GetList(array("sort"=>"asc"), array("ACTIVE"=>"Y"))
while($arIBlockType=$rsIBlockTypes->Fetch()) $arDoubleIBlockFullInfo = $arIBlockFullInfo
 $catalogData
 $catalogCount = (isset($catalogData['CNT']) ? (int)$catalogData['CNT'] : 0)
if($canUseYandexMarket) if(! $useSaleDiscountOnly||$catalogCount > 0) if($strUseStoreControl==='N' && $catalogCount > 0 $systemTabControl ) = new CAdminTabControl("tabControl2", $aTabs, true, true)

Переменные

◆ $accessController

$accessController = AccessController::getCurrent()

См. определение в файле options.php строка 23

◆ $applyDiscSaveModeList

$applyDiscSaveModeList = CCatalogDiscountSave::GetApplyModeList(true)

См. определение в файле options.php строка 41

◆ $arAllOptions

if ( $_SERVER $arAllOptions[ 'REQUEST_METHOD']=='GET' &&!empty( $_REQUEST[ 'RestoreDefaults']) &&! $bReadOnly &&check_bitrix_sessid())
Инициализатор
array("export_default_path", Loc::getMessage("CAT_EXPORT_DEFAULT_PATH"), "/bitrix/catalog_export/", array("text", 30)),
array("default_catalog_1c", Loc::getMessage("CAT_DEF_IBLOCK"), "", array("text", 30)),
array("deactivate_1c_no_price", Loc::getMessage("CAT_DEACT_NOPRICE"), "N", array("checkbox")),
)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804

См. определение в файле options.php строка 63

◆ $arCatalogList

$arCatalogList = array()

См. определение в файле options.php строка 1884

◆ $arDoubleIBlockFullInfo

while ( $arIBlockType=$rsIBlockTypes->Fetch()) $arDoubleIBlockFullInfo = $arIBlockFullInfo

См. определение в файле options.php строка 1988

◆ $arIBlockFullInfo

$arIBlockFullInfo = array()

См. определение в файле options.php строка 1887

◆ $arIBlockSitesList

$arIBlockSitesList = array()

См. определение в файле options.php строка 1885

◆ $arIBlockTypeIDList

$arIBlockTypeIDList = array()

См. определение в файле options.php строка 1976

◆ $arIBlockTypeNameList

$arIBlockTypeNameList = array()

См. определение в файле options.php строка 1977

◆ $arRecurring

$arRecurring = array()

См. определение в файле options.php строка 1889

◆ $arRecurringKey

$arRecurringKey = array()

См. определение в файле options.php строка 1890

◆ $arVal

$arVal = array()

См. определение в файле options.php строка 1785

◆ $arVATRef

$arVATRef = CatalogGetVATArray(array(), true)

См. определение в файле options.php строка 1882

◆ $aTabs

$aTabs
Инициализатор
array("DIV" => "edit5", "TAB" => Loc::getMessage("CO_TAB_5"), "ICON" => "catalog_settings", "TITLE" => Loc::getMessage("CO_TAB_5_TITLE")),
array("DIV" => "edit1", "TAB" => Loc::getMessage("CO_TAB_1"), "ICON" => "catalog_settings", "TITLE" => Loc::getMessage("CO_TAB_1_TITLE")),
array("DIV" => "edit2", "TAB" => Loc::getMessage("CO_TAB_2"), "ICON" => "catalog_settings", "TITLE" => Loc::getMessage("CO_TAB_2_TITLE"))
)

См. определение в файле options.php строка 1286

◆ $bReadOnly

$bReadOnly = !$accessController->check(ActionDictionary::ACTION_CATALOG_SETTINGS_ACCESS)

См. определение в файле options.php строка 24

◆ $canUseYandexMarket

$canUseYandexMarket = Catalog\Config\Feature::isCanUseYandexExport()

См. определение в файле options.php строка 46

◆ $catalogCount

$catalogCount = (isset($catalogData['CNT']) ? (int)$catalogData['CNT'] : 0)

См. определение в файле options.php строка 2242

◆ $catalogData

$catalogData
Инициализатор
= Catalog\CatalogIblockTable::getList(array(
'select' => array('CNT'),
'runtime' => array(
new Main\Entity\ExpressionField('CNT', 'COUNT(*)')
)
))->fetch()
Определения ufield.php:9

См. определение в файле options.php строка 2236

◆ $catalogIterator

while ( $arIBlock=$rsIBlocks->Fetch()) $catalogIterator
Инициализатор
= Catalog\CatalogIblockTable::getList(array(
'select' => array('IBLOCK_ID', 'PRODUCT_IBLOCK_ID', 'SKU_PROPERTY_ID', 'SUBSCRIPTION', 'YANDEX_EXPORT', 'VAT_ID')
))

См. определение в файле options.php строка 1934

◆ $crmInstalled

if ( $saleIsInstalled) $crmInstalled = ModuleManager::isModuleInstalled('crm')

См. определение в файле options.php строка 39

◆ $currentSettings [1/9]

$currentSettings = array()

См. определение в файле options.php строка 1301

◆ $currentSettings [2/9]

$currentSettings[ 'default_product_vat_included'] = Option::get('catalog', 'default_product_vat_included')

См. определение в файле options.php строка 1306

◆ $currentSettings [3/9]

$currentSettings[ 'discsave_apply'] = Option::get('catalog', 'discsave_apply')

См. определение в файле options.php строка 1302

◆ $currentSettings [4/9]

$currentSettings[ 'enable_processing_deprecated_events'] = Option::get('catalog', 'enable_processing_deprecated_events')

См. определение в файле options.php строка 1307

◆ $currentSettings [5/9]

$currentSettings[ 'get_discount_percent_from_base_price'] = Option::get(($saleIsInstalled ? 'sale' : 'catalog'), 'get_discount_percent_from_base_price')

См. определение в файле options.php строка 1303

◆ $currentSettings [6/9]

$currentSettings[ 'product_card_slider_enabled'] = Option::get('catalog', 'product_card_slider_enabled')

См. определение в файле options.php строка 1308

◆ $currentSettings [7/9]

$currentSettings[ 'save_product_with_empty_price_range'] = Option::get('catalog', 'save_product_with_empty_price_range')

См. определение в файле options.php строка 1304

◆ $currentSettings [8/9]

$currentSettings[ 'show_store_shipping_center'] = Option::get('catalog', 'show_store_shipping_center')

См. определение в файле options.php строка 1309

◆ $currentSettings [9/9]

$currentSettings[ 'use_offer_marking_code_group'] = Option::get('catalog', 'use_offer_marking_code_group')

См. определение в файле options.php строка 1305

◆ $default_outfile_action

for ( $i=0, $intCount=count( $arAllOptions);$i< $intCount;$i++) $default_outfile_action = Option::get('catalog', 'default_outfile_action')

См. определение в файле options.php строка 1737

◆ $enabledCommonCatalog

$enabledCommonCatalog = Catalog\Config\Feature::isCommonProductProcessingEnabled()

См. определение в файле options.php строка 45

◆ $enableViewedProducts

if( $saleIsInstalled &&Loader::includeModule( 'sale')) if(! $crmInstalled) if (! $useSaleDiscountOnly $enableViewedProducts) = Option::get('catalog', 'enable_viewed_products')

См. определение в файле options.php строка 1607

◆ $module_id

$module_id = 'catalog'

@global CMain $APPLICATION @global CUser $USER @global CDatabase $DB @global string $mid

См. определение в файле options.php строка 6

◆ $priceFields

См. определение в файле options.php строка 1817

◆ $productFields

if ( $strVal !='') $productFields
Инициализатор

См. определение в файле options.php строка 1791

◆ $rsIBlocks

$rsIBlocks = CIBlock::GetList(array('IBLOCK_TYPE' => 'ASC','ID' => 'ASC'))

См. определение в файле options.php строка 1892

◆ $rsIBlockTypes

$rsIBlockTypes = CIBlockType::GetList(array("sort"=>"asc"), array("ACTIVE"=>"Y"))

См. определение в файле options.php строка 1978

◆ $saleIsInstalled

$saleIsInstalled = ModuleManager::isModuleInstalled('sale')

См. определение в файле options.php строка 33

◆ $saleSettingsUrl

$saleSettingsUrl = 'settings.php?lang='.LANGUAGE_ID.'&mid=sale&mid_menu=1'

См. определение в файле options.php строка 43

◆ $searchShowOfferName

$searchShowOfferName = Option::get('catalog', 'product_form_show_offer_name')

См. определение в файле options.php строка 1323

◆ $sectionFields

См. определение в файле options.php строка 1848

◆ $strAllowCanBuyZero

$strAllowCanBuyZero = Option::get('catalog', 'default_can_buy_zero')

См. определение в файле options.php строка 1315

◆ $strEnableReservation

$strEnableReservation = Option::get('catalog', 'enable_reservation')

См. определение в файле options.php строка 1318

◆ $strOK

$strOK = ""

См. определение в файле options.php строка 75

◆ $strQuantityTrace

$strQuantityTrace = Option::get('catalog', 'default_quantity_trace')

См. определение в файле options.php строка 1314

◆ $strSaveProductWithoutPrice

$strSaveProductWithoutPrice = Option::get('catalog', 'save_product_without_price')

См. определение в файле options.php строка 1312

◆ $strShowCatalogTab

$strShowCatalogTab = Option::get('catalog', 'show_catalog_tab_with_offers')

См. определение в файле options.php строка 1311

◆ $strShowOffersIBlock

$strShowOffersIBlock = Option::get('catalog', 'product_form_show_offers_iblock')

См. определение в файле options.php строка 1321

◆ $strSimpleSearch

$strSimpleSearch = Option::get('catalog', 'product_form_simple_search')

См. определение в файле options.php строка 1322

◆ $strSubscribe

$strSubscribe = Option::get('catalog', 'default_subscribe')

См. определение в файле options.php строка 1316

◆ $strUseStoreControl

$strUseStoreControl = Option::get('catalog', 'default_use_store_control')

См. определение в файле options.php строка 1319

◆ $strVal

$strVal = Option::get('catalog', 'allowed_product_fields')

См. определение в файле options.php строка 1786

◆ $strWarning

if ( $canUseYandexMarket) $strWarning = ""

См. определение в файле options.php строка 74

◆ $styleViewed

$styleViewed = ($enableViewedProducts == 'Y' ? 'table-row' : 'none')

См. определение в файле options.php строка 1611

◆ $systemTabControl

if( $canUseYandexMarket) if(! $useSaleDiscountOnly|| $catalogCount > 0) if ( $strUseStoreControl==='N' &&$catalogCount > 0 $systemTabControl) = new CAdminTabControl("tabControl2", $aTabs, true, true)

См. определение в файле options.php строка 2339

◆ $tabControl

if ( $USER->IsAdmin()) $tabControl = new CAdminTabControl("tabControl", $aTabs, true, true)

См. определение в файле options.php строка 1299

◆ $useSaleDiscountOnly

$useSaleDiscountOnly = false

См. определение в файле options.php строка 32

◆ $viewedCount

$viewedCount = (int)Option::get('catalog', 'viewed_count')

См. определение в файле options.php строка 1609

◆ $viewedPeriod

$viewedPeriod = (int)Option::get('catalog', 'viewed_period')

См. определение в файле options.php строка 1610

◆ $viewedTime

$viewedTime = (int)Option::get('catalog', 'viewed_time')

См. определение в файле options.php строка 1608

◆ CATALOG_NEW_OFFERS_IBLOCK_NEED

const CATALOG_NEW_OFFERS_IBLOCK_NEED = -1

См. определение в файле options.php строка 19

◆ endif

endif = $check

См. определение в файле options.php строка 1450

◆ if

if(!empty($arRecurring)) ( $enabledCommonCatalog) = Loc::getMessage("CAT_SAVE_PRODUCTS_WITHOUT_PRICE")

См. определение в файле options.php строка 1400