$arFilter = array("IBLOCK_ID" => $IBLOCK_ID, "ACTIVE_DATE" => "Y", "ACTIVE" => "Y", "SECTION_ID" => $idSections, "INCLUDE_SUBSECTIONS" => "Y",);
$elementId=1; //ID элемента в который нужно добавить
$tmpFilePath=$_SERVER['DOCUMENT_ROOT']."/upload/picatest.jpg";
$arFile=array("VALUE" => \CFile::MakeFileArray($tmpFilePath),"DESCRIPTION"=>"");
\CIBlockElement::SetPropertyValueCode($elementId, 'MORE_PHOTO', $arFile);
$elementId=1; //ID элемента в который нужно добавить
$tmpFilePath=$_SERVER['DOCUMENT_ROOT']."/upload/picatest1.jpg";
$arFile[]=array("VALUE" => \CFile::MakeFileArray($tmpFilePath),"DESCRIPTION"=>"");
$tmpFilePath=$_SERVER['DOCUMENT_ROOT']."/upload/picatest2.jpg";
$arFile[]=array("VALUE" => \CFile::MakeFileArray($tmpFilePath),"DESCRIPTION"=>"");
$tmpFilePath=$_SERVER['DOCUMENT_ROOT']."/upload/picatest3.jpg";
$arFile[]=array("VALUE" => \CFile::MakeFileArray($tmpFilePath),"DESCRIPTION"=>"");
\CIBlockElement::SetPropertyValueCode($elementId, 'MORE_PHOTO', $arFile);
compatibleMode: false
events: {
onAfterPopupShow: function(popup) {
var obj= BX.findChild(popup.contentContainer, {className: 'form__btn1'}, true);
if (obj)
{
BX.bind(obj, 'mousedown', function(){
alert('111');
});
}
}
define("BX_CATALOG_IMPORT_1C_PRESERVE", true);
$GLOBALS['peremen'] = $arResult["AR_LIST_SERVICES_FILTER"];
...
'NEW_PARAM'=>$peremen,
...
$propertyCollection = $order->getPropertyCollection();
foreach ($propertyCollection as $property) {
if ($property->getField('CODE') == $code) $property->setValue('Быстрый заказ');
}
if (window.frameCacheVars !== undefined)
{
BX.addCustomEvent("onFrameDataReceived" , function(json) {
//тут наш вызов
}
}
//https://doc.budagov.ru/class_bitrix_1_1_sale_1_1_order_history.html
$order_resave = \Bitrix\Sale\Order::load($orderID);
$historyEntityType = 'ORDER'; //Наименование - В данном случае для заказа
$historyType = 'ORDER_COMMENTED'; //Нужный тип можно посмотреть в классе \CSaleOrderChangeFormat в $operationTypes
\Bitrix\Sale\OrderHistory::addAction(
$historyEntityType,
$order_resave->getId(),
$historyType,
$order_resave->getId(),
$order_resave,
['COMMENTS' => 'Первый пересчет заказа - component.php']
);