I need to create and add an attribute group to all attributes sets in an existing install (CE 1.6.2).
I have found some scripts for creating an attribute group, but I can't seem to find anything on how to add that attribute group to all the existing sets.
Any help will be highly appreciated.
Best Answer
Create a new file on the same level as
index.php
. Let's call itgroups.php
with this content:Save the file and access it in the browser:
mysite.com/groups.php
or run it in the command line:> php /path/to/groups.php
.Now you should see the new group in all your attribute sets.
This can be done via an upgrade script, but it seams easier this way.