0

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.

4
  • Due to the fact, that every level is loaded, I think it is not super easy to implement, but of course you can do it by changing the block which is rendered. What have you tried? What is the problem? Commented Dec 18, 2014 at 9:53
  • I haven't tried anything yet. I Will have a look At The block
    – Ronny
    Commented Dec 18, 2014 at 9:55
  • You mean 'expanded', right?
    – Marius
    Commented Dec 18, 2014 at 12:33
  • yeah, i mean expanded
    – Ronny
    Commented Dec 18, 2014 at 12:38

1 Answer 1

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.