| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Capitalise First Letters in Customer Info | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Capitalise First Letters in Customer Info
v3.5.*
This mod makes the customer data neater, by capitalising the first letters of the data entered and saves you editing it later. joe bloggs becomes Joe Bloggs 1) Make a file called capitalise.js and shove it in the skin1 directory. Add this code to it... Code:
2) Then find xcart/skin1/customer/home.tpl Add this code between <head> and </head> Code:
3) Then locate the following templates in the xcart/skin1/main directory register_billing_address.tpl register_shipping_address.tpl register_personal_info.tpl states.tpl (only if you have the states field as an input field) see also xcart/skin1/help/contactus.tpl if you want to use it on the 'contact us' form Call the script by adding this code to the input fields: Code:
eg. Change Code:
to Code:
etc. Hope someone finds this useful. See also a method for capitalising the zip/postal code http://forum.x-cart.com/viewtopic.php?t=8112 |
|||||||
#2
|
|||||||||
|
|||||||||
Honestly, I could kiss you for this.
90% of my customers are kids and lack of proper capitalisation is a MAJOR pet peeve of mine. The L33T speak is bad enough, but when the names and addresses are jumbled... ARGH! Cool Mod, I'll test it in my new store this weekend. |
|||||||||
#3
|
|||||||
|
|||||||
Nice one PhilJ
|
|||||||
#4
|
|||||||
|
|||||||
Works fine in Version 4.0.6, but how do I get the Post Code all in capitals, instead of the first letter only.
Version 4.0.6 |
|||||||
#5
|
|||||||
|
|||||||
__________________
xcartmods.co.uk |
|||||||
#6
|
|||||||
|
|||||||
Thanks Phil! It's been driving me crazy for years, always correcting the users input. Thanks again!
Metal-X |
|||||||
#7
|
|||||||
|
|||||||
Very cool mod. It makes everything look much more professional when the type is consistent.
I installed this mod. It works great on the contact us form and the new user register form. However it is not working during order checkout for new users. I have Jon's Easy Checkout mod installed and I suspect there might be some conflict with some other script in the files but don't know how to go about troubleshooting it. When you load the page, all is fine with no errors. Once you type data into a field and move to the next field, the yellow error triangle shows on the lower left corner of the browser. Also, anyone know SQL code to now go back and fix all the names in the database?
__________________
X-Cart Gold 4.1.8 |
|||||||
#8
|
|||||||||
|
|||||||||
Make sure you are including the JS in the home_checkout.tpl (EZ Checkout) as well as home.tpl.
|
|||||||||
#9
|
|||||||
|
|||||||
Thanks adpboss. I got it working. I had the script in home_checkout.tpl, but moved the location of it within the <head> tag and that fixed it.
Very cool to have this working now.
__________________
X-Cart Gold 4.1.8 |
|||||||
#10
|
|||||||
|
|||||||
For those of you who want to update your existing database, you can use the following SQL query:
Code:
__________________
X-Cart Gold 4.1.8 |
|||||||
|
|||
X-Cart forums © 2001-2020
|