Jump to content

Poptávka modulu pro automatickou deaktivaci zboží


flavio.cz

Recommended Posts

Poptávám modul, který by automaticky deaktivoval zboží, které není skladem a zároveň když k němu není nahraná žádná fotka.

 

UPDATE product SET active = 0
WHERE quantity < 1

UPDATE product SET active = 0
WHERE id_product NOT IN
(SELECT DISTINCT id_product FROM image WHERE 1)

Edited by Peter Liska (see edit history)
Link to comment
Share on other sites

UPDATE product SET active = 0
WHERE quantity < 1

UPDATE product SET active = 0
WHERE id_product NOT IN
(SELECT DISTINCT id_product FROM image WHERE 1)

 

Pro prestashop 1.5.x :

UPDATE ps_product_shop SET active = 0
WHERE quantity < 1

UPDATE ps_product_shop SET active = 0
WHERE id_product NOT IN
(SELECT DISTINCT id_product FROM ps_image WHERE 1)

Edited by Ventos312 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...