Closed maxlyaptsev closed 6 years ago
Максим, есть же такой метод
$iblockId = $helper->Iblock()->getIblockId('IBLOCK_CODE');
$helper->Iblock()->updatePropertyIfExists($iblockId,'PROP_CODE', array(
//...
));
или вот так
$iblockId = $helper->Iblock()->getIblockId('IBLOCK_CODE');
$propertyId = $helper->Iblock()->getPropertyId($iblockId, 'PROP_CODE');
$helper->Iblock()->updatePropertyById($propertyId, array(
//...
));
added the update property by CODE method, because the ID is implicit after migration