Answer the question
In order to leave comments, you need to log in
Uploading goods to the site, how to organize the system?
Good afternoon!
There is a task to create an online store website from 8 files in xml format. XML files lie on the servers of suppliers (there are just goods in the files). And every hour they are updated. The files are different in structure. The task is to take these files and upload them to your site. Could you tell me how to organize such a system? Maybe they need to be uploaded in 1s and after 1s it will give one xml file? How to approach this decision correctly so that the site works quickly, quickly updates the price, availability?
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Create a function that will download them to your server, write the function in init.php. Next, in the agents, you need to create an agent with this function, set a time interval for it.
Google about creating agents for Bitrix, there the function should return something like itself
Put an event on cron (every 5 minutes) and add the necessary agents with an interval of 1 hour.
Look here: blog.d-it.ru/dev/transfer-agents-on-the-crown-the-...
When uploading, if the formats do not match the format of your IBs, then probably the import using beads will not work. You need to look towards SimpleXML
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question