swifty Posted January 21, 2009 Share Posted January 21, 2009 Hi all,I've been looking for the code to remove the auto capital lock when a customer registers but I can't find it?Any pointers Link to comment Share on other sites More sharing options...
Infordesign Posted January 27, 2009 Share Posted January 27, 2009 Hello,Removing that feature is not very easy, took some time to find the right files to edit.That feature should become optional on the next releases. I know in France is usual to write the lastname in capitals, but for example in my country (Portugal) is not usual to do that. I only know how to remove that feature editing the application code, as explained here.To remove auto capital on lastname you have to edit this files: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;" /> *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;" /> *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;" /> *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);»Good luck! ;-) Link to comment Share on other sites More sharing options...
swifty Posted February 10, 2009 Author Share Posted February 10, 2009 Excellent Thank you infodesign! Link to comment Share on other sites More sharing options...
hatc Posted June 20, 2009 Share Posted June 20, 2009 Infordesign> I use the 1.1 version. I can not get this to work. Were you using another version at the time you posted the above. ?/Henrik Link to comment Share on other sites More sharing options...
Infordesign Posted June 22, 2009 Share Posted June 22, 2009 Hello hatc.I've used version 1.1 and worked. What errors do you get? Link to comment Share on other sites More sharing options...
hatc Posted June 22, 2009 Share Posted June 22, 2009 Hey, Infordesign,Thanks for your reply.I have tried 2 times to edit the above code, but every time I get the same problem.I can load my frontpage and backweb, that is all, when I want to go further I get the error pageboth in the front and backweb./Henrik Link to comment Share on other sites More sharing options...
Infordesign Posted June 22, 2009 Share Posted June 22, 2009 Can you post the error message please?Thank you! Link to comment Share on other sites More sharing options...
hatc Posted June 22, 2009 Share Posted June 22, 2009 Yes ofcause, I just need to make the changes again, so I´ll be back in a swiffy.. (;O) Link to comment Share on other sites More sharing options...
hatc Posted June 22, 2009 Share Posted June 22, 2009 Hmmmm !!! Well, I guess that the error was from the keyboard and up !! (;O)I just tried it ones more and this time it WORKED ()Thanks for posting your reply, without that I would have skipped it../Henrik Link to comment Share on other sites More sharing options...
Infordesign Posted June 22, 2009 Share Posted June 22, 2009 I'm glad you've found the error and everything worked as you want! ;-) Link to comment Share on other sites More sharing options...
grimdeath Posted August 28, 2009 Share Posted August 28, 2009 This helped me! Thanks!A note to others, it will not autofix existing names but simply allow new names to be created with lower case last names. You can also go in and edit existing custom accounts and retype the last name to be lower case.I also went ahead and added this style to my CSS to ensure names always display with Caps on the first letter of the word: #header #header_user_info span { text-transform: capitalize; } Great for giving the users name some styles as well Link to comment Share on other sites More sharing options...
kyrre Posted November 9, 2009 Share Posted November 9, 2009 This is really something for the dev team to address. I have to do the same routine everytime I upgrade.Make it a radio button in admin: Capitalize Last Name: Yes or no. Link to comment Share on other sites More sharing options...
noesac Posted August 22, 2010 Share Posted August 22, 2010 Hi is there a way to auto-capitalize the first name?E.g. change "michael" to "Michael" 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