Jump to content

"category tree" module in admin panel is too small


tobakalogati

Recommended Posts

Hello 

I use prestashop 1.7.4 .

I would like to know if there is any way to modify the "category tree" module in product page under admin panel. 

It is too small and every time i modify a product the categories are collapsed so i have to click on expand in order to see them . After i expand the categories most of them are hidden. 

It would be great if i could at least modify the left column and make it smaller , and make bigger the right column with categories , price etc 

 

Any ideas?

Thank you

 

category-tree-module2.jpg

category-tree-module1.jpg

Link to comment
Share on other sites

  • 1 year later...
  • 5 months later...
  • 4 months later...
On 11/22/2021 at 1:59 PM, webolive said:

You can also add some JQuery instead :

$(document).ready(function () {
    $('.adminproducts #form_content #step1 #categories').appendTo('.adminproducts #form_content #step1 .left-column');
});

Surely this one seems the cleaner solution but wich is the file to edit? Is it better to create an override?

thank you

Edited by Edoardo Cercone (see edit history)
Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...
  • 5 months later...

Hi, here is a little module to solve this problem. This module changes the position of categories tree in product admin page from right colum andplaces it in the center colum of the page so its large enought even for very long category names.

Compatible with Prestashop 1.7

Hope it helps

Enjoy

;)

 

 

movecattree.zip

Edited by Edoardo Cercone (see edit history)
Link to comment
Share on other sites

Another solution if you work on a large screen, is to change the admin template in \src\PrestaShopBundle\Resources\views\Admin\Product\ProductPage\product.html.twig line 59

change

    <div id="form-loading" class="col-xxl-10">

to

    <div id="form-loading" class="col-xxl-12">

and clear var/cache/

Edited by Prestashop Addict (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...