Question

i am using magento 1.8.1 CE.

Is it possible to have the category tree expanded while when adding new products? Now i have to fold it out myself every time untill the right category.

Thanks in adavance.

Was it helpful?

Solution

I'm not sure if it's a typo or not, but I assume you need the category tree expanded.
If this is the case, take a look at the template file that renders the categories for the product add/edit form: app/design/adminhtml/default/default/template/catalog/product/edit/categories.phtml

At the end of the Ext.EventManager.onDocumentReady function there is a commented line.

//tree.expandAll();

Un-commenting this line will make the tree appear expanded. But this is not a good idea if you will have a lot of categories or a lot of levels.

Of course is not a good idea to edit a core file directly. You should copy the file in a custom admin theme and change your admin theme.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top