E
E
Egor2014-12-18 18:22:32
PHP
Egor, 2014-12-18 18:22:32

How to transfer goods from one online store to another with price changes?

There is an online store of partners, you need to make sure that goods are duplicated on another site and a change in all prices by a certain percentage. How and with what help can this be done?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
J
jlekapb, 2014-12-18
@jlekapb

Ask partners to export the catalog with prices in xml or some format convenient for you. Then once a day you check the update of this file and import it to your site.
If partners cannot provide a catalog, write a parser and generate a partner catalog file yourself.

B
Boris Benkovsky, 2014-12-18
@benbor

If these are your partners, then it is strange that you do not have access. Apparently they are not your partners.
The most normal solution is to have access to their database, and make requests there, and display them on your site, taking into account the adjustments. All sorts of "parsing" is complete shit. This method is only good if you are stealing. And this is very bad
. Plus, parsing is a big load on you and on Them. Long response time, you will only know that the price has changed when the parser updates. And if you parse, you will be banned. No no no. Better ask for db access like "read-only" so you can't break anything

D
Dmitry Cherednichenko, 2014-12-18
@likeapimp

You can try parsing.
Ideally, if you have access to the database to the partner's site, then by importing the database, you only need to edit everything for your database (fields, tables, etc.).

R
Risiki, 2014-12-18
@risiki

it would be logical to copy the database, but there is no access to the site, plus is it possible for the catalog and prices to be updated automatically depending on changes on the partner's site?

You won't do it automatically (because I haven't heard about it). As an option, parse all the information once every couple of days and upload it to your site (depending on the change in partner's price).

A
Artem, 2014-12-19
@alfaslash

Access to the database of a partner who supplies goods is complete nonsense, not a single more or less successful company will open access to its database.
If the partner has an API for receiving goods - use it, if not - request it, as this is the most correct option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question