S
S
sagaton2021-11-18 11:14:52
1C-Bitrix
sagaton, 2021-11-18 11:14:52

How to set the property value of the elements of a particular section?

How to set the property value of the elements of a particular section?
There is an option how to set a specific element in IB.
$elementId =33;
$iblockId = 2;
\CIBlockElement::SetPropertyValuesEx($elementId, $iblockId, ['Seasons' => 'summer']);

but how to set all the elements of a certain section until the complexity
Tell me please, what are the options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-11-18
@sagaton

1) Select the required elements of the infoblock
2) Loop through them and change the values

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question