Posted By

SmpleJohn on 02/24/10


Tagged

caps


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

SmpleJohn


Prestashop 1.2.5 Remove Caps for Last Name


 / Published in: PHP
 

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

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

  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)

Report this snippet  

You need to login to post a comment.