E
E
Egor Tregubenko2016-07-03 12:37:54
PHP
Egor Tregubenko, 2016-07-03 12:37:54

How to reset the announcement variable in Bitrix?

in the product card there is a piece of such code

<?if(strlen($arResult["PREVIEW_TEXT"])):?>
          <div class="preview_text"><?=$arResult["PREVIEW_TEXT"]?></div>
        <?endif;?>
      </div>

PREVIEW_TEXT stores the announcement values ​​for the card - 9f03b857e82b441cb07ee763bb1685a0.png
so, these values ​​​​come from 1s, I need to "reset" them, because there the name and the announcement are the same, they must be filled in manually (text 500 characters) if I turn it off in 1s this parameter, the values ​​will still remain, how can I reset them correctly so that the copywriter starts filling them in from "Zero"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2016-07-03
@Sinecuraweb

Use the CIBlockElement::Update() method .
You can call it directly on the command line in the admin panel if you need to reset it once.
Of course, you should first make a backup and be careful when specifying the method parameters so as not to break firewood.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question