Jump to content

Help - SQL query to update quantity PS1.5.6


Recommended Posts

Hi,

We need a solution to update our shop daily by csv or excel file.
We have 5000 products and we need something better than csv import in prestashop.
All products have a ID and REFERENCE #. The REFERENCE number is unique for everyone product.
We want to create a file with REFERENCE number and QUANTITY.

We read a lot and see we can create sql query but we are not familiar with SQL.

Our hosting company gives access to SQL only by phpADMIN (for security reasons).

 

Link to comment
Share on other sites

Are you using multistore? Or advanced stock management?

Do you have at least a basic knowledge of sql? I'd personally create a script with a bulk update, disabling autocommit and committing the statements every, say, 500 entries or so.

 

Also, are you using product combinations?

Link to comment
Share on other sites

Quantity of the products are in ps_stock_available.
We must create a JOIN function in sql query to connect REFERENCE number in ps_product_attribute with ps_stock_available, because in ps_stock_available we didn't have REFERENCE number.

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 year later...
×
×
  • Create New...