Is there a way when adding a new product that all available Attributes would automatically be added to this product and oppened/expanded so that when I'm adding new product I don't have to first add them and then click on the headers to expand them?

Hope this image clears what I want to achieve:
![enter image description here](https://i.stack.imgur.com/D0W4I.jpg)

Sure, I can manually trigger the click on "Expand all" button with jQuery, but am having trouble finding the place where to add this piece of jQ code. More important to me is the former question though, so any push in the right direction is much appreciated.

**edit:** I managed to do the open(show) part of the problem by adding the line:

```
jQuery('.expand_all').trigger("click");

```

in the themes/mytheme/admin/admin-functions.php file in siteoptions\_admin\_head function. But the first qq still remains. I did find a work around though - I could first add one product and add every existing attribute to it, and when making new products I would make a copy of this product and them add/remove attributes I don't need. This however would not work dynamically if attributes change, so its not much of an improvement.