Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save willboudle/8306403 to your computer and use it in GitHub Desktop.
Update Magento Attribute Code (or other value)
$installer = $this;
$installer->startSetup();
$installer->updateAttribute('catalog_product', 'old_attribute_code', array('attribute_code' => 'new_attribute_code'));
$installer->endSetup();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment