$res = CPrice::GetList(
array(),
array(
"PRODUCT_ID" => $PRODUCT_ID,
"CATALOG_GROUP_ID" => $PRICE_TYPE_ID
)
);
if ($arr = $res->Fetch())
{
CPrice::Update($arr["ID"], $arFields); //если есть обновляем
}
else
{ //иначе добавляем
CPrice::Add($arFields);
}
$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,
...
Пересохраните файл с UNIX-овыми окончаниями строк
<div class="row">
<div class="col-12 col-md-6">1</div>
<div class="col-12 col-md-6">2</div>
<div class="col-12 col-md-6 order-md-1 order-2">3</div>
<div class="col-12 col-md-6 order-md-2 order-1">4</div>
</div>