B
B
boris tyrepharm2018-03-04 17:42:41
1C-Bitrix
boris tyrepharm, 2018-03-04 17:42:41

Bitrix event after synchronization of orders from 1s?

Question: is there an event in Bitrix after successful uploading of orders from 1C to the site?
There is OnSuccessCatalogImport1C, but it ignores the orders file "documents_.xml", which stores information about changed orders.
If this event does not exist, then how can you recreate it and connect to the Documents.xml upload file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Pukha, 2018-03-04
@summoner2015

There are very few separate events in Bitrix when integrating with 1C. Usually in such cases, standard events of infoblocks, catalog or sale are used.
In your case, I would use the order change event, and track what happens in $_SESSION and $_REQUEST in it. I don’t remember exactly the names of the parameters, but they appear when importing from 1C. Thus, you can customize integration with 1C without changing the Bitrix core.
The second option is to allocate a separate user for 1C, and track the user when working with orders. So, too, you can customize the logic only in the case when the 1C integration works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question