Answer the question
In order to leave comments, you need to log in
PHP + 1C integration. What to read?
For small and rarely updated stores, I always used the scheme “The customer exports to Excel -> Uploads to the site-> The plate is broken, updates the information in the database via mysql queries”.
Now I would like to learn more complete and humane integration (accounting for leftovers, constant updates without the need to export and upload to the site, etc.). But I can’t find information about this, okay, there are no tutorial articles, but even all the components of online stores are paid and you won’t be able to look at the source either.
I ask someone to share materials on this topic (1C database structure, data exchange, hello-world examples, etc.). Thanks in advance.
Answer the question
In order to leave comments, you need to log in
My opinion is that they did everything so that either no one figured it out, or only a few, spending a lot of time guessing on the coffee grounds.
Still, sales of 1C-Bitrix are much more important than the affairs of competing programmers.
I somehow had to do integration with 1C on a small PHP project. It was necessary to solve the problem quickly, so I chose the shortest path. 1C uploads an xml file with a product catalog to the network server, autofs is installed on the web server, which mounts the cifs-share and php script, using the simplexml extension, it parses 1C's xml. It works fast enough - now there are about 8,000 titles in the catalog, with pictures, but I still rewrote this script in C ++ so that there was a performance reserve for the future.
Another option for web services should be considered if I understand what it is about.
it is better to export to XML, if possible
, there are more than enough tools for working with it in PHP, incl. you can immediately use XSLT to convert data into neat (X)HTML code
The option to immediately write from 1C to the database (you obviously have MySQL there) is not considered?
We did integration via SOAP, when adding or changing any item, a SOAP request is sent to me. Also, I make a SOAP request when ordering a product.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question