Jump to content

How disable all products that have price 0


Recommended Posts

How I can disable all products that have price 0

 

i try some like this

 

BEGIN

UPDATE diventoc_product_shop SET active=0 WHERE diventoc_product IN (SELECT diventoc_product FROM diventoc_stock_available WHERE quantity=0);

UPDATE diventoc_product_shop SET active=1 WHERE diventoc_product IN (SELECT diventoc_product FROM diventoc_stock_available WHERE quantity>0);

END

 

​could you help me?

 

thanks a lot!!

Link to comment
Share on other sites

  • 5 weeks later...
×
×
  • Create New...