Created
April 16, 2016 18:30
-
-
Save aurire/1827ed6da6e46ef33a11dcf16afa2afd to your computer and use it in GitHub Desktop.
Magento. Remove attribute
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Remove attribute | |
Mage::getModel('catalog/product_attribute_api')->remove('test_01'); | |
//Remove just from attribute set | |
Mage::getModel('catalog/product_attribute_set_api') | |
->attributeRemove($attributeId, $attributeSetId); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment