Deostar.ro Posted October 13, 2009 Share Posted October 13, 2009 Hello Prestashop users!I need the name of the customers to be fully shown in Orders tab (not like J. Doe, but like John Doe). I know that they are shown in full in Customers tab, but I need to see them in Orders tab as well. The problem is the first name of the client is shortened. And I need to see it complete in Orders tab.Is there a solution for this problem?Any help will be highly appreciated.Thanks in advance. Link to comment Share on other sites More sharing options...
chrissie Posted October 13, 2009 Share Posted October 13, 2009 Be watching to see if you get a reply to this one, as it's something I would use.I know absolutely nothing about php, but I'm not frightened to have a go at messing around with the files - and I did manage to create the two first name and last name columns in Orders. Not much good as there were no names on the lists :bug: !!!If me who knows nothing can do that, then I'm sure that pulling the first and last names into the columns is really dead easy to do Link to comment Share on other sites More sharing options...
rocky Posted October 14, 2009 Share Posted October 14, 2009 You need to modify line 28 of admin/tabs/AdminOrders.php. Change: CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`, to: CONCAT(c.`firstname`, \' \', c.`lastname`) AS `customer`, 1 Link to comment Share on other sites More sharing options...
Deostar.ro Posted October 14, 2009 Author Share Posted October 14, 2009 Hello there!Thanks a lot for your solution !It works like a charm !Big thanks again ! Link to comment Share on other sites More sharing options...
kobichhobi Posted October 15, 2009 Share Posted October 15, 2009 Thank You! It works fine for me too! Link to comment Share on other sites More sharing options...
noesac Posted November 6, 2010 Share Posted November 6, 2010 I just implemented this, brilliant Link to comment Share on other sites More sharing options...
Behc98 Posted November 7, 2010 Share Posted November 7, 2010 Thanks so much better Link to comment Share on other sites More sharing options...
peanut Posted November 7, 2010 Share Posted November 7, 2010 Thanks...Hope this comes by default in 1.4 Link to comment Share on other sites More sharing options...
rocky Posted November 7, 2010 Share Posted November 7, 2010 I doubt it will. This hasn't been posted as a feature request. Link to comment Share on other sites More sharing options...
Ra Ra Posted February 6, 2013 Share Posted February 6, 2013 This not work for prestashop 1.5.3. Link to comment Share on other sites More sharing options...
moniq Posted March 10, 2013 Share Posted March 10, 2013 How can I fix it in Prestashop 1.5 ? Link to comment Share on other sites More sharing options...
moniq Posted March 10, 2013 Share Posted March 10, 2013 I fixed it You need to modify line 45 of controllers/admin/AdminOrdersController.php Exactly like rocky write (Thanks rocky ) : CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`, to: CONCAT(c.`firstname`, \' \', c.`lastname`) AS `customer`, 1 Link to comment Share on other sites More sharing options...
vekia Posted March 11, 2013 Share Posted March 11, 2013 I fixed it You need to modify line 45 of controllers/admin/AdminOrdersController.php Exactly like rocky write (Thanks rocky ) : CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`, to: CONCAT(c.`firstname`, \' \', c.`lastname`) AS `customer`, thanks for sharing the solution Link to comment Share on other sites More sharing options...
AngelSpeedy Posted May 2, 2013 Share Posted May 2, 2013 Working Fine in 1.4.9.0 with the first code from the friend " rocky ".. Tks.. Link to comment Share on other sites More sharing options...
Rhapsody Posted May 2, 2013 Share Posted May 2, 2013 Here is an override file with the full name modification you can copy to /prestashop/override/controllers/admin/ This file has worked for me on 1.5.3.1 and higher (currently running on 1.5.4.1). With this override, when you update your shop, the change should remain. AdminOrdersController.php Link to comment Share on other sites More sharing options...
leomazz Posted May 3, 2013 Share Posted May 3, 2013 Thanks for the tip! Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2013 Share Posted May 6, 2013 I moved this thread to the correct forum section thanks for solutions and php controllers Link to comment Share on other sites More sharing options...
sworld Posted May 6, 2013 Share Posted May 6, 2013 Works Perfectly in 1.5.4 Link to comment Share on other sites More sharing options...
Jagotic Posted February 18, 2019 Share Posted February 18, 2019 Works on Prestashop 1.6 last release Thanks rocky Link to comment Share on other sites More sharing options...
seanbon Posted May 14, 2019 Share Posted May 14, 2019 Works for me too on latest version of 1.6. Thanks so much for posting this. It's one of those little things I've wanted to change for the longest time. Nice to see the full name now. Did it as an override. 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