Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Capital Letters in address book

    Quote Originally Posted by janellez View Post
    Can anyone tell me how to maybe edit this mod so that ALL the input is in caps? Yes, I know many are against this, but my customer wants it because of a separate accounting package that requires this type of input.

    Thanks!
    This is very easy...

    For each input field you will see a bit of script:

    onchange="capitalize(this,1)

    Change the 1 to 0

    onchange="capitalize(this,0)
    20 years a Zencart User

  2. #12
    Join Date
    Sep 2007
    Posts
    128
    Plugin Contributions
    0

    Default Re: Capital Letters in address book

    Quote Originally Posted by schoolboy View Post
    This is very easy...

    For each input field you will see a bit of script:

    onchange="capitalize(this,1)

    Change the 1 to 0

    onchange="capitalize(this,0)
    Schoolboy, thanks so much! I honestly forgot about this thread and I really should have checked back sooner.

    I do have another question. This works perfectly when a person is signing up but if they go in and change their primary address, say, in the Address Book, this capitalization functionality isn't there. If I was going to add it to the whole Address Book functionality, can you point me to the file I would change?

    Thanks so much!

  3. #13
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Capital Letters in address book

    Ok,
    You will notice the mod "Capitalization" changes the .php coding in this file...
    includes/ templates/ template_defaults/ template/ tpl_modules_create_account.php
    So just use logic to compare how they have coded the capitalization into field names..

    This is the file you will edit... Make sure you use the override system..
    includes/ templates/ template_defaults/ template/ tpl_modules_address_book_details

    Make sure you place this file here before editing..

    includes/ templates/ your_template/ template/ tpl_modules_address_book_details

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 9
    Last Post: 7 May 2016, 06:39 PM
  2. How can I stop requiring address on address book page?
    By jaredt112 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Apr 2010, 02:30 AM
  3. How to get capital letters in catagory?
    By mj55 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 13 Feb 2010, 04:22 PM
  4. Replies: 8
    Last Post: 1 Apr 2009, 05:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg