V
V
vyacheslavdmitrievich792021-11-25 18:03:30
PHP
vyacheslavdmitrievich79, 2021-11-25 18:03:30

Why is the announcement description reset when unloading from 1C?

There is a site on 1s-bitrix business edition. Made standard integration with 1C. After unloading all the goods, I change the description of the announcement. After re-uploading, the description of the announcement is reset to the name of the product. What can be wrong? Where should you pay attention?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artem Zhitnik, 2021-11-26
@art-zhitnik

In setting up an exchange profile in 1s, look at the correspondence of the nomenclature fields. Perhaps you have configured an announcement-name.

A
Alexander, 2021-11-29
@AlexanderKs3

A very ancient question.. And the solution is the same.
Unloading the announcement cannot be disabled on the 1C side.
Its filling with the name is written in the code on the side of the site. If this behavior is not to your liking, developers are advised to hang handlers on the element addition and update events, intercepting and deleting the value for the "Announcement" field. Naturally, doing this only when exchanging with 1C, i.e. call the following code in the event handler:

if (isset($_REQUEST['type'], $_REQUEST['mode']) && $_REQUEST['type'] === 'catalog' && $_REQUEST['mode'] === 'import') {
        unset($arFields['PREVIEW_TEXT']);
        unset($arFields['PREVIEW_TEXT_TYPE']);
}

A
Alexander, 2021-11-29
@kikher

Make an exchange of only changes and that's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question