/ Published in: PHP

It's annoying that the last names are all caps as a default in Prestashop. Here's how to fix it.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
admin/tabs/AdminAddresses.php => remove «style="text-transform: uppercase;"» on: <input type="text" size="33" name="lastname" value="’.htmlentities($this->getFieldValue($obj, ‘lastname’), ENT_COMPAT, ‘UTF-8’).’" style="text-transform: uppercase;" > <sup>*</sup> admin/tabs/AdminCustomers.php => remove «style="text-transform: uppercase;"» on: <input type="text" size="33" name="lastname" value="’.htmlentities($this->getFieldValue($obj, ‘lastname’), ENT_COMPAT, ‘UTF-8’).’" style="text-transform: uppercase;" > <sup>*</sup> admin/tabs/AdminEmployees.php => remove «style="text-transform: uppercase;"» on: <input type="text" size="33" name="lastname" value="’.htmlentities($this->getFieldValue($obj, ‘lastname’), ENT_COMPAT, ‘UTF-8’).’" style="text-transform: uppercase;" > <sup>*</sup> classes/Address.php => find this line and change to this: «$fields[‘lastname’] = pSQL($this->lastname);» classes/Customer.php => find this line and change to this: «$fields[‘lastname’] = pSQL($this->lastname);» classes/Employee.php => find this line and change to this: «$fields[‘lastname’] = pSQL($this->lastname);»
Comments
