franzneves Posted July 5, 2014 Share Posted July 5, 2014 (edited) In the order screen appears the first name abbreviated as this client: J. Luiz da Silva. Does anyone know the name of the client full well appear: José Luiz da Silva? grateful Edited July 5, 2014 by franzneves (see edit history) Link to comment Share on other sites More sharing options...
PSfever.com Posted July 5, 2014 Share Posted July 5, 2014 By order screen - do you mean the backoffice? Or frontoffice - the order process? Link to comment Share on other sites More sharing options...
franzneves Posted July 5, 2014 Author Share Posted July 5, 2014 Backoffice - Thanks. Link to comment Share on other sites More sharing options...
vekia Posted July 6, 2014 Share Posted July 6, 2014 you have to modify contorller: /controllers/admin/AdminOrdersController.php CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`, instead of LEFT(c.`firstname`, 1) use just c.`firstname` Link to comment Share on other sites More sharing options...
franzneves Posted July 6, 2014 Author Share Posted July 6, 2014 Thanks but not work. message errror: Query in SQL wrongColumn 'firstname' in field list is ambiguous Link to comment Share on other sites More sharing options...
vekia Posted July 7, 2014 Share Posted July 7, 2014 strange can you show please how your modified code looks like? Link to comment Share on other sites More sharing options...
franzneves Posted July 7, 2014 Author Share Posted July 7, 2014 CONCAT(LEFT(`firstname`, 1), \'. \', c.`lastname`) AS `customer`, Link to comment Share on other sites More sharing options...
vekia Posted July 7, 2014 Share Posted July 7, 2014 it's not a code that i suggested to use ;-) use just c.`firstname` Link to comment Share on other sites More sharing options...
franzneves Posted July 7, 2014 Author Share Posted July 7, 2014 I delete this entire line: CONCAT (LEFT (c. `firstname`, 1), \ '. \', C. `Lastname`) AS `customer`, and substituted by c. `firstname` is this? Thank you Link to comment Share on other sites More sharing options...
Mister Denial Posted August 1, 2014 Share Posted August 1, 2014 (edited) Hi Vekia, even with the code looking like this CONCAT(LEFT(c.`firstname`), \'. \', c.`lastname`) AS `customer`, It creates a bad sql error on the orders page in 1.6.0.8: "Bad SQL queryYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '), '. ', c.`lastname`) AS `customer`, osl.`name` AS `osname`, os.`color`, ' at line 6" Edited August 1, 2014 by Mister Denial (see edit history) Link to comment Share on other sites More sharing options...
franzneves Posted August 1, 2014 Author Share Posted August 1, 2014 Look: http://www.prestashop.com/forums/topic/342145-resolvido-como-aparecer-o-nome-do-cliente-completo-na-tela-de-pedidos/?do=findComment&comment=1725127 1 Link to comment Share on other sites More sharing options...
Mister Denial Posted August 1, 2014 Share Posted August 1, 2014 Thanks franzneves, didn't think about searching the spanish forum. Worked perfect! Link to comment Share on other sites More sharing options...
franzneves Posted August 1, 2014 Author Share Posted August 1, 2014 Ok. Portuguese forum. Link to comment Share on other sites More sharing options...
Mister Denial Posted August 1, 2014 Share Posted August 1, 2014 Sorry, can't speak either, but I should have known, as someone from Brazil was posting there. Didn't catch the clue. 1 Link to comment Share on other sites More sharing options...
franzneves Posted August 1, 2014 Author Share Posted August 1, 2014 (edited) The important thing is that we solve our problem. Edited August 1, 2014 by franzneves (see edit history) 1 Link to comment Share on other sites More sharing options...
vekia Posted August 1, 2014 Share Posted August 1, 2014 code is equal to code that i suggested to use 1 Link to comment Share on other sites More sharing options...
Mister Denial Posted August 2, 2014 Share Posted August 2, 2014 (edited) @ Vekia: true, but I was confused, I thoguht the LEFT had to stay in there an only remove the ,1 for the line. ;-) @ franzneves: you're right! :-) Edited August 2, 2014 by Mister Denial (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts