Im currently working on a sql formula that when i import a particular supplier and products are removed from the file to only update the qty of those in the database to 0. But what happens is that it updates every other supplier as well. Here is the formula below. We have created an attribute in magento called supplier. So how can we add this in the formula to only update products not on file that are "supplier A" as 0 only? Thanks
/* This SQL block may be executed after product import and it will set products that are not in imported file as "Qty 0". */
/* Please note that this SQL block must be modified manually according to your database specifics to work properly. */
UPDATE /*PREFIX*/cataloginventory_stock_item SET qty = 0
WHERE product_id in (&`prod.ProdNotInCsv`);/*DELIMITER*/
UPDATE /*PREFIX*/cataloginventory_stock_status SET stock_status = 0
WHERE product_id in (&`prod.ProdNotInCsv`);/*DELIMITER*/