Disable products by category


/ Published in: MySQL
Save to your folder(s)

After the MySQL above has run – you’ll need to let Magento take the reigns back a little to update the category indexes, this is quite straightforward, but a little time consuming.

Login to your admin and go to System > Cache Management, the select Rebuild Catalog Index


Copy this code and paste it in your HTML
  1. UPDATE catalog_product_entity_int cpei, catalog_product_entity cpe
  2. SET value = '2'
  3. WHERE cpe.entity_id = cpei.entity_id
  4. AND attribute_id = "80"
  5. AND cpe.category_ids = "%35%"
  6. AND (cpe.category_ids LIKE "35,%" OR cpe.category_ids LIKE "%,35,%")

URL: http://www.sonassi.com/knowledge-base/magento-knowledge-base/fast-bulk-product-status-change-with-magento/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.