Mister Denial Posted August 22, 2011 Share Posted August 22, 2011 Hello, is it possible to have the full first name and last name displayed in the order summary? For example, if the customer is Theodore Testman, it displays only T. Testman - how can I change that so it shows the entire name? I guess it is a truncate function in the order tab, but I can't find it, nor which code to change. Any help? Many thanks in advance! Dan Link to comment Share on other sites More sharing options...
screentekdesignsltd Posted August 22, 2011 Share Posted August 22, 2011 Hello, is it possible to have the full first name and last name displayed in the order summary? For example, if the customer is Theodore Testman, it displays only T. Testman - how can I change that so it shows the entire name? I guess it is a truncate function in the order tab, but I can't find it, nor which code to change. Any help? Many thanks in advance! Dan Hi Dan The file you require is in admin/tabs/AdminOrders.php line you wish to alter is CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`, solution to change this to full name is to come. THanks 1 Link to comment Share on other sites More sharing options...
Mister Denial Posted August 22, 2011 Author Share Posted August 22, 2011 Hi there, thank you for the hint with the file. I tried editing it, but my coding isn't good enough, kept getting syntax errors. So if you figure out how to modify the code, it would be much appreciated! Have a great day! Dan Link to comment Share on other sites More sharing options...
devilsown Posted August 23, 2011 Share Posted August 23, 2011 That was bugging me too. Thanks for the pointer. use this it will still let you search by first or lastname. They should have there own fields thought CONCAT((c.`firstname` ), \' \', c.`lastname`) AS `customer`, NOw i just need to add a way to search by company name Anyone got that code sitting around? 2 Link to comment Share on other sites More sharing options...
Mister Denial Posted August 23, 2011 Author Share Posted August 23, 2011 Most wonderful, many thanks, IT WORKS! Thanks again for your help, much appreciated! Link to comment Share on other sites More sharing options...
Mister Denial Posted November 1, 2016 Author Share Posted November 1, 2016 For those wishing to apply this solution to more recent versions of Prestashop, please edit AdminOrdersController.php file, located in /controllers/admin/ Hope this helps. Link to comment Share on other sites More sharing options...
jugalfas Posted June 12, 2021 Share Posted June 12, 2021 (edited) Hello Mister Denial, There is no AdminOrdersController.php in my prestashop folder. now how can i show full name in admin order tab? Thanks Edit : There is `OrderQueryBuilder.php` in `src\Core\Grid\Query\` you can change there query. Edited June 21, 2021 by jugalfas (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