P
P
po4emu4ka20202020-11-11 12:30:27
1C-Bitrix
po4emu4ka2020, 2020-11-11 12:30:27

How to configure the update of HL-block elements when uploading from 1C?

I want to set up an exchange between 1C and Bitrix through uploading user directories.

I unload the directory, an HL block is created, everything is fine.
In 1C I make some changes to the elements of the directory, I unload the directory again, nothing changes. At the same time, the upload file comes to Bitrix, there are changes from 1C.
Logically, the changes should be displayed in the HL block, but they are not there (

Is it possible to somehow configure the updating of the elements of the HL block when uploading from 1C?

So far, I only think of parsing the xml file through cron, but I don’t really like this option, I want a more elegant solution.Maybe

someone came
across.I would be glad for any help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
po4emu4ka2020, 2020-11-21
@po4emu4ka2020

Understood, put the handler on the event

AddEventHandler("catalog", "OnSuccessCatalogImportHL", "SuccessCatalogImportHLHandler");
function SuccessCatalogImportHLHandler($settings, $file)

And in 1C he ticked the upload of exchange files to the site. As a result, it turned out that the exchange unloads the file, in the event handler the exchange file is parsed and the necessary elements of the HL block are updated

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question