Jump to content

<SOLVED>How to show full name of customers in Orders tab ?


Deostar.ro
 Share

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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
:)

Share this post


Link to post
Share on other sites

  • 1 year later...
  • 2 years later...
  • 1 month later...

I fixed it :)

You need to modify line 45 of controllers/admin/AdminOrdersController.php

Exactly like rocky write (Thanks rocky :D ) :

 

 

CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`,

to:

 

CONCAT(c.`firstname`, \' \', c.`lastname`) AS `customer`,

  • Like 1

Share this post


Link to post
Share on other sites

I fixed it :)

You need to modify line 45 of controllers/admin/AdminOrdersController.php

Exactly like rocky write (Thanks rocky :D ) :

 

 

CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`,

to:

 

CONCAT(c.`firstname`, \' \', c.`lastname`) AS `customer`,

 

thanks for sharing the solution :)

Share this post


Link to post
Share on other sites

  • 1 month later...
  • 5 years later...
  • 2 months later...

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.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More