Skip to content

Instantly share code, notes, and snippets.

@willboudle
Last active January 2, 2016 14:59
Show Gist options
  • Select an option

  • Save willboudle/8320852 to your computer and use it in GitHub Desktop.

Select an option

Save willboudle/8320852 to your computer and use it in GitHub Desktop.
Uodate Magento Default attribute values
UPDATE `eav_attribute` SET `default_value` = 'container1' WHERE `eav_attribute`.`attribute_code`='options_container';
UPDATE `eav_attribute` SET `default_value` = '1' WHERE `eav_attribute`.`attribute_code`='is_active';
UPDATE `eav_attribute` SET `default_value` = '1' WHERE `eav_attribute`.`attribute_code`='is_anchor';
UPDATE `eav_attribute` SET `default_value` = '1' WHERE `eav_attribute`.`attribute_code`='status';
UPDATE `eav_attribute` SET `default_value` = '0' WHERE `eav_attribute`.`attribute_code`='weight';
UPDATE `eav_attribute` SET `default_value` = '2' WHERE `eav_attribute`.`attribute_code`='tax_class_id';
insert into core_config_data values ( null, 'default', 0, 'cataloginventory/item_options/is_in_stock', 1 );
insert into core_config_data values ( null, 'default', 0, 'cataloginventory/item_options/qty', 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment