A
A
Alex-19172017-10-24 15:43:17
MySQL
Alex-1917, 2017-10-24 15:43:17

How to load products in OpenCart directly from DB to DB?

The database is periodically replenished with goods, where the product is a row in one flat table, 5 columns - name, article, price, category number (coincides with the id of already existing categories in the second database), an array of pictures (a text field where the addresses of the pictures are separated commas). Well, the 6th column - id autoincrement.
What is the best way, with minimal human intervention, to periodically transfer these products to another database - on which Opencart runs? As you know, there the goods are stored in aggregate in more than one table.
OpenCart version - 1.5.5.1.2
This is - https://stackoverflow.com/questions/17122752/how-t... - read while chewing...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2017-10-25
@alex-1917

Look at the object, at the input of the addProduct($data) method in the ModelCatalogProduct admin model.
You need to bring the data from the first database to this form and simply pass it to this method.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question