Skip to content

Instantly share code, notes, and snippets.

@timbroder
Created July 12, 2011 18:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timbroder/1078656 to your computer and use it in GitHub Desktop.
Save timbroder/1078656 to your computer and use it in GitHub Desktop.
Bulk enable all magento products
update catalog_product_entity_int i, eav_attribute a set i.value = 1 where a.attribute_code = "status" and i.attribute_id = a.attribute_id;
update catalog_product_entity_int i, eav_attribute a set i.value = 2 where a.attribute_code = "visibility" and i.attribute_id = a.attribute_id;
update catalog_product_entity_int i, eav_attribute a set i.value = 2 where a.attribute_code = "tax_class_id" and i.attribute_id = a.attribute_id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment