Answer the question
In order to leave comments, you need to log in
How to parse product prices from an XML file for the Prom marketplace?
Hello.
I have an online store on the Prom.ua trading platform .
The task is this: to parse prices for goods from the manufacturer's website ( XML file ).
Prom has an import by reference. There I enter the xml site address and when importing, the addition of all products and manufacturer groups in our store begins. And there are goods for 5000+ pieces, while I need to update the prices for goods of only 300 pieces.
I know that the goods are checked by id and overwritten all the manufacturer's goods with the required id in my Prom account.
The technical support of the site replied that the import occurs as written in the XML file. I asked the technical support of the manufacturer of goods, they answered me that they could not change anything.
Question: How can I make sure that price parsing occurs specifically for certain products id in this marketplace?
Maybe I don’t know something and there are services through which you can set up parsing by certain id .
Answer the question
In order to leave comments, you need to log in
If I understood correctly and:
1. There is a site where you sell.
2. There is you, between the site where you sell and the manufacturer.
3. There is a manufacturer's website that gives the generated XML, which you can use.
That's all you need:
1. Get the manufacturer's XML (using a link or manually replacing the file that you will load yourself in your logic).
2. Parse it into an array\object.
3. On the basis of this, form another array, which will include those elements (goods, as I understand it) that are included in the conditions that interest you.
4. Generate an XML file that will be available on some resource (for example, on your website), a link to which will be at the point of sale (prom).
To complete step 2 and continue, you should study the possibilities of the PL, but judging by the fact that PHP is indicated in the keys, you can start from here . Next, you will need to ask a search engine a question in the spirit of “how to generate XML”.
I'll just leave it here: https://prom.ua/cloud-cgi/static/uaprom-static/doc...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question