Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Force Capital letters in Postal Code Field

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 05-29-2004, 10:22 PM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

Once again Shan the X-GURU answers one of my questions
You're like one of those wise man on the mountain types, Guru and all
Thanks Shan... YOU ROCK!
__________________
v. 4.0.14 (GM Style)
O.S. Linux
Build Your Own Diamond Ring
Reply With Quote
  #12  
Old 10-30-2004, 10:09 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

You can also use this in your smarty templates:

{$b_firstname|ucfirst}
Reply With Quote
  #13  
Old 01-13-2005, 06:39 AM
  shishapipe's Avatar 
shishapipe shishapipe is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: London
Posts: 47
 

Default

Just thought i would post this for x-cart 4.09 code for the shipping and bill address to make the post code in capitals.

shopcart/skin1/main/register_billing_address.tpl

Code:
<TR> <TD align="right">{$lng.lbl_zip_code}</TD> <TD>{if $default_fields.b_zipcode.required eq 'Y'}<FONT class="Star">*</FONT>{else}{/if}</TD> <TD nowrap> <INPUT type="text" id="b_zipcode" name="b_zipcode" size="32" maxlength="32" value="{$userinfo.b_zipcode}" onChange="check_zip_code();this.value=this.value.toUpperCase()"> {if $reg_error ne "" and $userinfo.b_zipcode eq "" and $default_fields.b_zipcode.required eq 'Y'}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR>

shopcart/skin1/main/register_shipping_address.tpl

Code:
<TR> <TD align="right">{$lng.lbl_zip_code}</TD> <TD>{if $default_fields.s_zipcode.required eq 'Y'}<FONT class="Star">*</FONT>{else}{/if}</TD> <TD nowrap> <INPUT type="text" id="s_zipcode" name="s_zipcode" size="32" maxlength="32" value="{$userinfo.s_zipcode}" onChange="check_zip_code();this.value=this.value.toUpperCase()"> {if $reg_error ne "" and $userinfo.s_zipcode eq "" and $default_fields.s_zipcode.required eq 'Y'}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR>
__________________
Regards Maxking

SERVER: Microsoft-IIS/5.0
MYSQL Server: 4.0.18-NT
PERL: 5.006001
PHP: 4.3.6
X-CART pro: 4.3
X-AOM: 4..3
X-RMA: 4..3X-FancyCategories 4.3
Skin: Own Design
Marketing Manager Professional 3.0 Bundle
Reply With Quote
  #14  
Old 02-12-2005, 08:36 AM
 
Chrystella Chrystella is offline
 

Advanced Member
  
Join Date: May 2004
Location: London UK
Posts: 58
 

Default

Just thought i would post this for x-cart 4.0.11 code for the Contact Us address to make the post-code in capitals.

xcart/skin1/help/contactus.tpl

Code:
<TR> <TR valign="middle"> <TD class="FormButton">{$lng.lbl_zip_code}</TD> <TD>{if $default_fields.b_zipcode.required eq 'Y'}<FONT class="Star">*</FONT>{else}{/if}</TD> <TD nowrap> <INPUT type="text" id="b_zipcode" name="b_zipcode" size="32" maxlength="32" value="{$userinfo.b_zipcode}" onChange="check_zip_code();this.value=this.value.toUpperCase()"> {if $reg_error ne "" and $userinfo.b_zipcode eq "" and $default_fields.b_zipcode.required eq 'Y'}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR>

Regards
TonyS
Reply With Quote
  #15  
Old 01-14-2008, 03:29 PM
 
Chill-Tek Chill-Tek is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 42
 

Default Re: Force Capital letters in Postal Code Field

Quote:
Originally Posted by shan
Here you go,

clever little trick that. I did this for V3.5.3 but youll see the idea of how it works for any other version.

This is the code for the zip code part of the registration form

Code:
<tr valign=middle> <td align=right>{$lng.lbl_zip_code}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=b_zipcode size=32 maxlength=32 value="{$userinfo.b_zipcode}" onKeyUp="this.value=this.value.toUpperCase()" onChange="check_zip_code()" > {if $reg_error ne "" and $userinfo.b_zipcode eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr>


I just added the onKeyUp="this.value=this.value.toUpperCase()" to the input field string because the code on 4.1.9 is slightly different. Just letting y'all know. Great little mod.
Reply With Quote
  #16  
Old 01-22-2008, 10:42 PM
  imexhouse's Avatar 
imexhouse imexhouse is offline
 

eXpert
  
Join Date: May 2006
Location: Canada
Posts: 377
 

Default Re: Force Capital letters in Postal Code Field

PhilJ has posted a mod for capitalizing First Letters in Customer Info.

How would you convert street directions, such as SW, NW, NE and NW from appearing as Sw, Nw, Ne and Nw?
Here's the link for PhilJ's mod:

http://forum.x-cart.com/showthread.php?t=8203

Thanks,

Jack
__________________
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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:46 PM.

   

 
X-Cart forums © 2001-2020