muksu Posted January 28 Share Posted January 28 (edited) Hello Where is located the TPL file for the ORDER LISTING in the BO ? I want to modify the magnifier icon on the right of the screenshot attached to this post. I want to remove the POPUP text from it It bother us when we try to open multiple pages by using CTRL+CLICK to open a new tab (the popup prevent us to click on next line above) Please help me to find the right TPL to modify it Best regards Edited January 30 by muksu (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted January 29 Share Posted January 29 In recent PS versions the backend is using twig, not Smarty anymore, you can find the files in src\PrestaShopBundle\Resources\views. Anyway to increase the button size you only need some CSS, no twig modification. The popup is a javascript Link to comment Share on other sites More sharing options...
muksu Posted January 29 Author Share Posted January 29 Hello Yes I know that it is twig now. Also for the begining of the path... but i can not find the correct file. Please help me Link to comment Share on other sites More sharing options...
JBW Posted January 29 Share Posted January 29 As said, no need to do anything in the twig, rather change CSS and JS. Link to comment Share on other sites More sharing options...
muksu Posted January 29 Author Share Posted January 29 Hello I need the file to remove the popup. Best regards Link to comment Share on other sites More sharing options...
JBW Posted January 29 Share Posted January 29 On 1/29/2025 at 10:32 AM, muksu said: I need the file to remove the popup. Expand Use Javascript (with a more specific CSS selector): $("[data-toggle='pstooltip']").pstooltip('dispose') Link to comment Share on other sites More sharing options...
muksu Posted January 29 Author Share Posted January 29 Hello No i really need the file location. Anyone can help me on that ? Link to comment Share on other sites More sharing options...
JBW Posted January 29 Share Posted January 29 The actions are compiled dynamically based on the grid definition \src\PrestaShopBundle\Resources\views\Admin\Common\Grid\Actions\Row\link.html.twig You shouldn't modify anything there. Easiest way is to use the JS above. Link to comment Share on other sites More sharing options...
Andrei H Posted January 29 Share Posted January 29 (edited) Hello, I do agree with JBW. This should be achieved through JS. But if you do want to modify the source code, the class that you want to look into is src/Core/Grid/Definition/Factory/OrderGridDefinitionFactory.php - commenting out line 491 will remove the popup that's displayed on hover. I tested the above with PS 8.2 - not really sure what PS version are you using, but it should work fine on 8 - assuming, of course, you do not have the grid code overridden. Edited January 29 by Andrei H (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now