Results 1 to 9 of 9
  1. #1
    Join Date
    May 2005
    Location
    Sweden
    Posts
    151
    Plugin Contributions
    0

    Default Customer information with uppercase on first letter

    Hi all!

    Is there an easy way to make the customer information appear with uppercase on the First Letter..?

    Why I ask is because alot of customers don't seem to find the Shift button on their keyboards.

    Most people probably wouldn't bother but I have an obsessive mind and IMO it looks very unprofessional shipping stuff with recipient info is all in lower case, therefor I always change it.

    This is quite time consuming but it is something that has to be done according to me. *Psycho*

    Thanks in advance!

    Svanis

  2. #2
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Customer information with uppercase on first letter

    You need use the php function ucwords(). This will captialise the first letter of every word for you.

    You probably want to save yourself some time in the future, and place this alteration in the create account header. That way the names will be stored in the database as capitalised words.

    The ucwords function uses the following syntax:
    Code:
    echo ucwords('firstname lastname'); // returns "Firstname Lastname"
    Absolute

  3. #3
    Join Date
    May 2005
    Location
    Sweden
    Posts
    151
    Plugin Contributions
    0

    Default Re: Customer information with uppercase on first letter

    Thank you for the fast reply..

    To the next question; for one who aren't that skilled with php.. Where should this be inserted?

    Svanis

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Customer information with uppercase on first letter

    I think before you do that you might want to do a search for a thread in the archives- look for prettifier (?) - someone has made an addon that takes care of the names.

  5. #5
    Join Date
    May 2005
    Location
    Sweden
    Posts
    151
    Plugin Contributions
    0

    Default Re: Customer information with uppercase on first letter

    Quote Originally Posted by Kim
    I think before you do that you might want to do a search for a thread in the archives- look for prettifier (?) - someone has made an addon that takes care of the names.
    One thing is for sure; it is not named "prettifier".. Anyone who knows this contribs name?

  6. #6
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Customer information with uppercase on first letter

    "Proper Case" by Speedy G
    http://www.zen-cart.com/forum/showthread.php?t=30300

    Follow the edits recommended by scrat and documented by yours truly in the same forum. The edits work fine in Zen Cart 1.3.0.1. Unsure how the code works for non-English languages.

    Link to the latest version I am aware of:
    http://www.mutualadvantage.co.uk/zen...-20060317a.zip

    propercase-20060317a.zip is more recent than propercase-v1.0.1.zip. But I also understood in above thread that someone might be working on an update, which I have not observed any announcement.

    Woody

  7. #7
    Join Date
    May 2005
    Location
    Sweden
    Posts
    151
    Plugin Contributions
    0

    Default Re: Customer information with uppercase on first letter

    Thanks a bunch Woody!

    It sure did the trick!

  8. #8
    Join Date
    May 2005
    Location
    Sweden
    Posts
    151
    Plugin Contributions
    0

    Default Re: Customer information with uppercase on first letter

    Quote Originally Posted by Woodymon
    Unsure how the code works for non-English languages.
    I can tell you that it isn't completely flawless when it comes to non-english letters. The first letter after any of swedish "å, ä or ö" is uppercased.

    Anyone with a solution?

  9. #9
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Customer information with uppercase on first letter

    Quote Originally Posted by Svanis
    I can tell you that it isn't completely flawless when it comes to non-english letters. The first letter after any of swedish "å, ä or ö" is uppercased.

    Anyone with a solution?
    Look in the archived thread for Proper Case. A few folks announced some potential workarounds.

 

 

Similar Threads

  1. v154 USPS Module: Canada does not show first class letter rate
    By cahoca in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 27 Jun 2015, 12:03 AM
  2. Error with customer information
    By waterbender in forum General Questions
    Replies: 0
    Last Post: 12 Jan 2012, 09:06 AM
  3. New Items / View All Items: Only showing first letter of product description
    By opengrave in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 22 Feb 2011, 07:57 PM
  4. New product Month First letter in Capital in Swedish language
    By javaclinic in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Feb 2010, 04:21 PM
  5. Implementing first-letter pseudo element
    By jvanree in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Jul 2008, 02:47 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