| ||||||||||
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 |
#21
|
|||||||||
|
|||||||||
Re: Capitalise First Letters in Customer Info
Please, do it for 4.1.7
Very useful mod! Thank you!
__________________
X-card Gold 4.1.7 Batch Order Mod/Order Processing Detailed Order Management Mod Order Audit/Profit reports Advanced Product Search Ajax Username Checker Direct Product Enquiry Form FAQ Manager Social Bookmarking Tabs Mod v3 MagneticOne.com All-IN-ONE X-Cart Export Show Referrer Information on Order Details Page www.medsmarket.net |
|||||||||
#22
|
|||||||
|
|||||||
Re: Capitalise First Letters in Customer Info
Had a hard time trying to implement this mod in v4.1.8 so I started from scratch and made several changes to make it work.
1 - Create a file and call it capitalise2.js and place it in the /skin1 directory Place the following code in this file: Code:
2) Then find xcart/skin1/customer/home.tpl Add this code between <head> and </head> Code: Code:
3) Then locate the following templates in the xcart/skin1/main directory register_personal_info.tpl register_billing_address.tpl register_shipping_address.tpl also locate xcart/skin1/help/contactus.tpl Call the script by changing/adding this code to the end of the input fields: |capitalize:true}" onChange="capitalizeMe(this);" /> For instance: Change the existing code shown as commented code {* ...*} with the one under it in skin1/main/register_personal_info.tpl: Code:
You can test it out now to see if it works by starting up X-Cart and clicking on the 'register' button located on the 'Authentication' menu. In the 'First Name' box enter a name in lowercase, and then press the tab key or go to the 'Last Name' box and you can see that the first letter has changed to uppercase. Test the 'Last Name' box also to make sure your code has been correctly entered. Now also change the code in skin1/main/register_billing_address.tpl: Code:
Since the register_billing_address.tpl file is still open, you can also change the zip code to make sure that it will always be upper case by changing the following code: Code:
Do the same with skin1/main/register_shipping_address.tpl: Code:
And this is the code to make the zip code all upper case: Code:
And finally the code in skin1/help/contactus.tpl: Code:
And the code for upper case zip codes: Code:
All the modifications above were made on templates that had no previous modifications. Hope you like it and thanks to PhilJ for the inspiration. - MoonDog -
__________________
X-CART Gold v4.1.8 |
|||||||
#23
|
|||||||||
|
|||||||||
Re: Capitalise First Letters in Customer Info
that Is Great!
Thank You For Your Hard Work! Works Perfect In 4.1.7
__________________
X-card Gold 4.1.7 Batch Order Mod/Order Processing Detailed Order Management Mod Order Audit/Profit reports Advanced Product Search Ajax Username Checker Direct Product Enquiry Form FAQ Manager Social Bookmarking Tabs Mod v3 MagneticOne.com All-IN-ONE X-Cart Export Show Referrer Information on Order Details Page www.medsmarket.net |
|||||||||
#24
|
|||||||||
|
|||||||||
Re: Capitalise First Letters in Customer Info
Now I don't know what to think. I am running 4.1.8, followed the exact steps, cleared the template cache, does not work for me. So I went back and checked each step, and same results. The only step I did not do is the zip code step as we're here in the U.S. and do not do any over-seas business.
BTW: Checked it placing a sample order as a customer would. Here is the weird thing, the contact form does work, but the checkout process does not.
__________________
Carl Tice X-Cart 4.6.6 X-Payments 3.0 ReBOOT 3.4.1 PHP 5.6.30 MySQL 5.6.35 Linux 2.6.32-042stab120.18 ionCube PHP Loader v4.7.3 Perl 5.10.1 |
|||||||||
#25
|
|||||||
|
|||||||
Re: Capitalise First Letters in Customer Info
If you're using Fastlane Checkout, you'll need to add the...
Code:
to... Code:
also.
__________________
xcartmods.co.uk |
|||||||
#26
|
|||||||||
|
|||||||||
Re: Capitalise First Letters in Customer Info
Quote:
Bingo! Ah - Order is once again restored to the world! Thanks PhilJ, and thanks MoonDog!
__________________
Carl Tice X-Cart 4.6.6 X-Payments 3.0 ReBOOT 3.4.1 PHP 5.6.30 MySQL 5.6.35 Linux 2.6.32-042stab120.18 ionCube PHP Loader v4.7.3 Perl 5.10.1 |
|||||||||
#27
|
|||||||||
|
|||||||||
Re: Capitalise First Letters in Customer Info
"What a top man" one of my biggest hates was people writing the first letter of any line in lower case making you alter it manualy - tops marks.
Many thanks for your hard work on this. Regards Dean
__________________
-------------- V4.6.1 xcartmods - Reboot Template X-cart - X-PDF Altered Cart - Checkout one |
|||||||||
#28
|
|||||||
|
|||||||
Re: Capitalise First Letters in Customer Info
Can I just say many thanks for great and easy mod...
but now I'm really confused, I saw this thread yesterday, made a mental note to do the mod today, came back to the thread and never went past page 1, followed all the steps and with no trouble at all got it working first time straight out of the box on 4.1.8. Made a second mental note to come back to say thanks, here I am, and read page 2 and 3, only to discover others were unable to get it to work on that version... I guess I am just lucky Oh and thanks for pointing me to the Postcode mod too, I did them both and I am one happy bunny, I hate people who don't capitalise properly, and I just have to fix it, now I don't need to worry. Thanks again.
__________________
Chris Barber Version 4.1.9 MOD - BCSE Shipping Estimator MOD - Shopzilla Feed MOD - Price Match with Captcha MOD - Links Manager 2008 MOD - One Page Checkout MOD - Sitemap |
|||||||
#29
|
|||||||||
|
|||||||||
Re: Capitalise First Letters in Customer Info
I wonder how the address field could be modified so street direction, like SW, NW stay in upper case, instead of Sw and Nw.
Any idea?
__________________
Jack@AquasanaCA X-CART GOLD 4.0.19 Live DSEFU, AOM, ezCheckout, ezUpsell, ezRecommends, RememberMe, RememberAnonCarts AquasanaCanada.com - Aquasana╝ - #1 Rated Water Filters in America! X-CART GOLD 4.4.5 Live CDSEO Pro v. 1.8.4 AquasanaMontreal.com Aquasana╝ & Rhino Water Filtration Systems |
|||||||||
#30
|
|||||||
|
|||||||
Re: Capitalise First Letters in Customer Info
this works a treat on 4.1.9. I am fed up with the usual.....
mr joe bloggs 23 west bloggs drive etc et........ When i order stuff on the net i always make sure the details of address are clear and formatted correctly to make sure i get the goods, not someone down the road. Thanks again. |
|||||||
|
|||
X-Cart forums © 2001-2020
|