Jump to content

Set all products to zero quantity


Recommended Posts

From the top of my head (so test it first on test setup) it would be something like

Update PS_PRODUCT set quantity="0" where id_category_default >"4" and id_category_default <"11"

 

This assumes that all those products have those categories as default. If that is not the case it becomes a bit more complicated and you need to access the PS_CATEGORY_PRODUCT table too.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...