Add attribute to attribute set Simple script to add a catalog attribute to all attribute sets Put the "add-attribute-to-attribute-set.php" file in the Magento root path. Insert the attribute code. Optionally you can set a name to the group.