При смене языка через клавишу fn всплывает окно со сменой языка, как его отключить в MacOS Monterey?
$params = [
"get" => $_GET,
"post" => $_POST,
"files" => $_FILES,
"cookie" => $_COOKIE,
"server" => $_SERVER,
];
$server = new \Bitrix\Main\Server($params['server']);
$request = new \Bitrix\Main\HttpRequest(
$server,
$params['get'],
$params['post'],
$params['files'],
$params['cookie']
);
function beforePrologHandler() {
AddEventHandler("main", "OnBuildGlobalMenu", 'deleteForbiddenMenuItems', PHP_INT_MAX);
}
\Bitrix\Catalog\ProductTable::getList([
"select" => [
"ID", //id товара
"IBLOCK_ELEMENT.NAME", //Название товара из элемента инфоблока
"IBLOCK_ELEMENT.IBLOCK_SECTION.NAME", //Название раздела товара
]
])
<?php foreach ($arResult["ITEMS"] as $arItem): ?>
<?
$this->AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_EDIT"));
$this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));
?>
<div id="<?= $this->GetEditAreaId($arItem['ID']); ?>">
</div>
<?php endforeach; ?>
<?
$productsAmount = [];
$rsStoreProduct = \Bitrix\Catalog\StoreProductTable::getList(array(
'filter' => array('PRODUCT_ID' => $arData, 'STORE_ID' => array(31, 33)),
'select' => array('PRODUCT_ID', 'AMOUNT', 'STORE_ID', 'STORE_TITLE' => 'STORE.TITLE', 'PRODUCT_NAME' => 'PRODUCT.IBLOCK_ELEMENT.NAME'),
));
while ($arStoreProduct = $rsStoreProduct->fetch()) {
if (is_null($productsAmount[$arStoreProduct["PRODUCT_ID"]])) {
$productsAmount[$arStoreProduct["PRODUCT_ID"]] = 0;
}
$productsAmount[$arStoreProduct["PRODUCT_ID"]] += $arStoreProduct["AMOUNT"]
}
return array_search(0, $productsAmount) === false;
/** int $orderId ID заказа */
$order = \Bitrix\Sale\Order::load($orderId);
$collection = $order->getShipmentCollection()->getNotSystemItems();
$needShipment = null;
foreach ($collection as $shipment)
{
//В примере выбирается первая отгрузка. Опишите выбор отгрузки так как вам надо
$needShipment = $shipment;
break;
}
if (!is_null($needShipment)) {
$needShipment->setField("TRACKING_NUMBER", 'xxxxxxxxxx');
}
<?
$highLoadBlock = \Bitrix\Highloadblock\HighloadBlockTable::getList([
'filter' => ['=TABLE_NAME' => "b_hlbd_proizvoditeli"]
])->fetch();
$entity = \Bitrix\Highloadblock\HighloadBlockTable::compileEntity($highLoadBlock);
$vendorClass = $entity->getDataClass();
$dbVendors = $vendorClass::getList([
"filter" => [
"UF_NAME" => "search string"
]
]);
$vendors = [];
while ($vendor = $dbVendor->fetch()) {
$vendors[] = $vendor;
}
\Bitrix\Iblock\Elements\ElementCatalogTable::getList([
"select" => [
"BRAND_VALUE" => "BRAND.VALUE",
"COUNT",
],
"filter" => [
"!BRAND.VALUE" => false
],
"group" => [
"BRAND.VALUE"
],
"runtime" => [
new \Bitrix\Main\ORM\Fields\ExpressionField('COUNT', 'COUNT(*)' )
]
])
public function changeStatusOnOrderCreate(\Bitrix\Main\Event $event)
{
/** @var \Bitrix\Sale\Order $order */
$order = $event->getParameter("ENTITY");
$order->setField("STATUS_ID", "T");
$event->addResult(
new Main\EventResult(
Main\EventResult::SUCCESS, $order
)
);
}