cayrol272 Posted September 7, 2013 Posted September 7, 2013 Hi, I'm still new using prestashop. Attached picture was an order list on Admin side. My problem is customer's names show second name instead first name. It give me difficult to look for my customer because in my country we address people using first name. Could someone help me, how to show customer name using first name? Which template should I looking for? or I need to modify controller? Thank you. Share this post Link to post Share on other sites More sharing options...
NemoPS Posted September 7, 2013 Posted September 7, 2013 You have to edit AdminOrdersController.php At line 45, you'll find part of a query CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`, Change it to CONCAT(c.`firstname`, \' \', c.`lastname`) AS `customer`, 8 1 Share this post Link to post Share on other sites More sharing options...
cayrol272 Posted September 7, 2013 Posted September 7, 2013 It great! That had solved my problem. Thank you nemo1. Share this post Link to post Share on other sites More sharing options...
vekia Posted September 7, 2013 Posted September 7, 2013 I marked this thread as [sOLVED] @cayrol272 you can also mark own threads as solved, here is the instruction: [sOLVED] TopicIf, after posting a topic, you find a solution to your problem, please indicate it in your post and describe the solution.Furthermore if you are the author of the topic for which a solution has been found, please edit your topic title to mark it as [sOLVED].To mark a topic as [solved] :- Edit the first post of your topic by clicking on the "Edit" button,- Click on the "Use full editor" button,- Add the "[solved]" string at the beginning of your topic title and click on the "Submit Modified Post" button. btw. welcome on board! Share this post Link to post Share on other sites More sharing options...
Liliana M Posted February 14, 2015 Posted February 14, 2015 Hi Guys, I need your help How I can show the full costumer name in Admin order list. I'm using P.S. 1.6.0.11 Thank you very much. Liliana Share this post Link to post Share on other sites More sharing options...
NemoPS Posted February 16, 2015 Posted February 16, 2015 Change the following line CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`, to CONCAT(c.`firstname`, \' \', c.`lastname`) AS `customer`, In AdminOrdersController.php 1 Share this post Link to post Share on other sites More sharing options...
Liliana M Posted February 16, 2015 Posted February 16, 2015 Hi Nemo1, It worked. Thank you very much. Share this post Link to post Share on other sites More sharing options...
subaru4wd Posted February 17, 2015 Posted February 17, 2015 Thank you for this fix!!! I can't believe prestashop hides customer information... do you have any idea how many L. Garcia, and J. Martinez there are that live in california and order from us??? This will help a lot! Share this post Link to post Share on other sites More sharing options...
marketingphenom Posted January 20, 2016 Posted January 20, 2016 Change the following line CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`, to CONCAT(c.`firstname`, \' \', c.`lastname`) AS `customer`, In AdminOrdersController.php I'm using ps version 1.5.6.2. I tried using this suggestion but it did not change anything. Hoping to be able to display the complete first and last name. Any ideas why it didn't work? Share this post Link to post Share on other sites More sharing options...
NemoPS Posted January 22, 2016 Posted January 22, 2016 You might have an override then, that has to work if you modify the core file Share this post Link to post Share on other sites More sharing options...
nikmagnus Posted May 6, 2016 Posted May 6, 2016 Thanks for this, it works for me in PS 1.6.1.4 Share this post Link to post Share on other sites More sharing options...
meclarn Posted March 1, 2018 Posted March 1, 2018 Just a follow up on this thread. In Prestashop v. 1.6.1.18. I had to make the changes to both AdminOrdersController.php and AdminOutstandingController.php in order for this to work. Share this post Link to post 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