Search code examples
phpsqlprestashop

PrestaShop - insert products script


I am looking for sql or php script which shows how to insert integrated data represents product with its attributes, images etc. to PrestaShop database. Does anyone know steps of this process - I mean name of tables and columns I need to fill.


Solution

  • Read the source!! You have access to every classes, so just take a look at Product.php and ObjectModel.php and you will have every infos you need about the fields and the tables.

    If your goal is to insert products, you don't need to write any sql queries. I would recommend to use the methods provided to avoid any errors.