Written by Giles Bennett
Bulk add attribute to attribute sets in Magento
The other day a client added a new attribute, but then wanted to add it to all their attribute sets - all 190 of them. Could this be done programmatically, they asked?

About the author
Giles Bennett built his first website in 1996, and is old enough to miss Netscape Navigator. Initially a lawyer, he jumped ship to IT in 2008, and after 5 years as a freelancer, he founded HummingbirdUK in 2013. He can be reached by email at giles@hummingbirduk.com.