Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2009
    Posts
    28
    Plugin Contributions
    0

    Default Nickname Max characters

    Hi, I am trying to find how to set a maximum characters for Nickname and telephone fields on the Create Account form.
    I have just done a new install of 1.3.9 with the nickname mod.
    I can see where the minimum values are but any assistance in setting up maximum values will be much appreciated

    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Nickname Max characters

    Why ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2009
    Posts
    28
    Plugin Contributions
    0

    Default Re: Nickname Max characters

    Hi DrByte. I have another app that uses this information and it has a restricted character length for the fields that relate to this info.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Nickname Max characters

    As far as Zen Cart's built-in fields, it typically reads the length from the database field and uses that to enforce the max number of chars being input.
    If you follow the same pattern as that for your own custom fields, you'll get the same results.
    Or you could hard-code the max into your template's form input fields for them, directly.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jan 2009
    Posts
    28
    Plugin Contributions
    0

    Default Re: Nickname Max characters

    Hi DrByte. Thanks for the information. I changed the field length and got it to work. The last little bit is how could I set the telephone field to only accept numbers?

  6. #6
    Join Date
    Nov 2010
    Posts
    64
    Plugin Contributions
    0

    Default Re: Nickname Max characters

    Quote Originally Posted by kiwi1066 View Post
    Hi DrByte. Thanks for the information. I changed the field length and got it to work. The last little bit is how could I set the telephone field to only accept numbers?
    I also would like to know how to make the telephone field accept only numbers and not letters.
    Help would be appreciated.
    See: https://www.zen-cart.com/showthread....nd-not-letters

 

 

Similar Threads

  1. Text box with Max Characters set - text disappears
    By breda in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 27 Jul 2010, 01:06 PM
  2. Change Max Characters in Manufacturers Sidebox
    By KismetDesign in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Nov 2009, 06:03 AM
  3. Remove Max Characters Atrributes
    By jaxsonsmom in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 8 Jun 2009, 07:19 PM
  4. how to increase max characters for Products Model
    By keylesslocks in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Oct 2008, 05:55 PM
  5. Replies: 3
    Last Post: 21 May 2008, 05:56 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR