paulormf Posted October 12, 2013 Share Posted October 12, 2013 Good night for all!! I would like change the display format Name - Last name and not Last name - Name in BO customer exibition. does anyone know if it is possible to make this change? prestashop 1.5.5.0 Link to comment Share on other sites More sharing options...
vekia Posted October 12, 2013 Share Posted October 12, 2013 in this case you have to edit admin customer controller there is no other way to achieve it (maybe with some js hacks but it's not solution - it's a workaround) open file: controllers/admin/AdminCustomersController.php you will see there something like: (it's a part of code) ... array( 'type' => 'radio', 'label' => $this->l('Title:'), 'name' => 'id_gender', 'required' => false, 'class' => 't', 'values' => $list_genders ), array( 'type' => 'text', 'label' => $this->l('First name:'), 'name' => 'firstname', 'size' => 33, 'required' => true, 'hint' => $this->l('Forbidden characters:').' 0-9!<>,;?=+()@#"�{}_$%:' ), array( 'type' => 'text', 'label' => $this->l('Last name:'), 'name' => 'lastname', 'size' => 33, 'required' => true, 'hint' => $this->l('Invalid characters:').' 0-9!<>,;?=+()@#"�{}_$%:' ), ... and move this code above the code with first name: Link to comment Share on other sites More sharing options...
paulormf Posted October 12, 2013 Author Share Posted October 12, 2013 in this case you have to edit admin customer controller there is no other way to achieve it (maybe with some js hacks but it's not solution - it's a workaround) open file: controllers/admin/AdminCustomersController.php you will see there something like: (it's a part of code) ... array( 'type' => 'radio', 'label' => $this->l('Title:'), 'name' => 'id_gender', 'required' => false, 'class' => 't', 'values' => $list_genders ), array( 'type' => 'text', 'label' => $this->l('First name:'), 'name' => 'firstname', 'size' => 33, 'required' => true, 'hint' => $this->l('Forbidden characters:').' 0-9!<>,;?=+()@#"�{}_$%:' ), array( 'type' => 'text', 'label' => $this->l('Last name:'), 'name' => 'lastname', 'size' => 33, 'required' => true, 'hint' => $this->l('Invalid characters:').' 0-9!<>,;?=+()@#"�{}_$%:' ), ... and move this code above the code with first name: --- Ok vekia, i've moved the codes but still appears in the order "last name - name"..i cleaning smarty cache and browser and loged again. Link to comment Share on other sites More sharing options...
vekia Posted October 13, 2013 Share Posted October 13, 2013 in the same file you've got also this code: $this->fields_list = array( ... ... 'lastname' => array( 'title' => $this->l('Last name'), 'width' => 'auto' ), 'firstname' => array( 'title' => $this->l('First Name'), 'width' => 'auto' ), can you try to switch positions here? 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