Prestashop 1.2.5 Remove Caps for Last Name


/ Published in: PHP
Save to your folder(s)

It's annoying that the last names are all caps as a default in Prestashop. Here's how to fix it.


Copy this code and paste it in your HTML
  1. admin/tabs/AdminAddresses.php
  2. => remove «style="text-transform: uppercase;"» on:
  3. <input type="text" size="33" name="lastname" value="’.htmlentities($this->getFieldValue($obj, ‘lastname’), ENT_COMPAT, ‘UTF-8’).’" style="text-transform: uppercase;" > <sup>*</sup>
  4.  
  5. admin/tabs/AdminCustomers.php
  6. => remove «style="text-transform: uppercase;"» on:
  7. <input type="text" size="33" name="lastname" value="’.htmlentities($this->getFieldValue($obj, ‘lastname’), ENT_COMPAT, ‘UTF-8’).’" style="text-transform: uppercase;" > <sup>*</sup>
  8.  
  9. admin/tabs/AdminEmployees.php
  10. => remove «style="text-transform: uppercase;"» on:
  11. <input type="text" size="33" name="lastname" value="’.htmlentities($this->getFieldValue($obj, ‘lastname’), ENT_COMPAT, ‘UTF-8’).’" style="text-transform: uppercase;" > <sup>*</sup>
  12.  
  13. classes/Address.php
  14. => find this line and change to this: «$fields[‘lastname’] = pSQL($this->lastname);»
  15.  
  16. classes/Customer.php
  17. => find this line and change to this: «$fields[‘lastname’] = pSQL($this->lastname);»
  18.  
  19. classes/Employee.php
  20. => find this line and change to this: «$fields[‘lastname’] = pSQL($this->lastname);»

URL: http://www.prestashop.com/forums/viewthread/30451/general_discussion/return_the_surname_from_the_db_as_capitalize_text

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.