Good day to all!
I have a question for connoisseurs working on Bitrix or modx. Surely, solving complex projects, you had to face such a task as integration with an online store 1c. This article, which is listed on this link , states that there is a specific data exchange protocol between 1c and the site. The main order transfer format is agreed to by CommerceML standards.
So in my case, using this data exchange protocol, it is necessary to go through the directory tree with the files:
Корневая папка/ 1/ файл1.xml файл2.xml ... файлN.xml 2/ файл1.xml файл2.xml ... файлN.xml ... N/ файл1.xml файл2.xml ... файлN.xml файл_xxxxxx.xml файл2_xxxxxx.xml So, according to the standards of this exchange protocol, the following values are possible there:
For type :
- catalog .
- sale .
For mode :
- checkauth
- init
- file
- import
- query
- success
Unloading can be carried out as follows:
http: // <site> / <path> /1c_exchange.php?type=catalog&mode=import&filename=< filename>
I wanted to ask how you can sort through the directory tree with the files correctly, using the 1c data transfer protocol with the site. Is he even capable of that? Who was doing this?
In my case, it turns out that it only reads files in the root folder, that is:
файл_xxxxxx.xml файл2_xxxxxx.xml.