Jump to content

PS 1.7.8.5 - How to change product ID column size in ADMIN Product page in order to see the number!


jvicente1971

Recommended Posts

Hello,

You can edit the source template manually, but be aware that at the next Prestashop update, you'll lose the modification. You could do it again after it.

Maybe it can be overriden from a module or template, but I don't know.

The file to edit is : /src/PrestaShopBundle/Resources/views/Admin/Product/CatalogPage/Lists/products_table.html.twig

Locate

<th scope="col" style="width: 5rem">
  {{ ps.sortable_column_header("ID"|trans({}, 'Admin.Global'), 'id_product', orderBy, sortOrder) }}
</th>

and replace by :

<th scope="col" style="width: 8%">
  {{ ps.sortable_column_header("ID"|trans({}, 'Admin.Global'), 'id_product', orderBy, sortOrder) }}
</th>

Save, clear cache.
Result :

image.png.818ed5cf82c673648623c61d081eeb74.png

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...