PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

How to show full name of customers in Orders tab ?

8 replies to this topic
#1
Vitamina A

    PrestaShop Newbie

  • Members
  • Pip
  • 22 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.
Vitamina A - Despre vitamine

#2
chrissie

    PrestaShop Apprentice

  • Members
  • PipPip
  • 194 posts
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
:)

#3
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
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`,

Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

#4
Vitamina A

    PrestaShop Newbie

  • Members
  • Pip
  • 22 posts
Hello there!

Thanks a lot for your solution !
It works like a charm !

Big thanks again !
Vitamina A - Despre vitamine

#5
kobichhobi

    PrestaShop Newbie

  • Members
  • Pip
  • 24 posts
Thank You!

It works fine for me too!

#6
noesac

    PrestaShop Apprentice

  • Members
  • PipPip
  • 492 posts
I just implemented this, brilliant

#7
behcet

    PrestaShop Apprentice

  • Members
  • PipPip
  • 109 posts
Thanks so much better

#8
peanut

    PrestaShop Apprentice

  • Members
  • PipPip
  • 154 posts
Thanks...Hope this comes by default in 1.4

#9
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
I doubt it will. This hasn't been posted as a feature request.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.