Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2011
    Posts
    80
    Plugin Contributions
    0

    Default Phone Number format

    Hi,

    Right now when a customer enters a phone number they just enter it into one box (ex: 1234567890). Is there an easy way to make the phone number box three boxes (ex [111] [222] [3333])?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Phone Number format

    Why is that necessary?
    Is there some particular business reason for wanting that? Or is it just a cosmetic preference you yourself have?
    .

    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
    Nov 2011
    Posts
    80
    Plugin Contributions
    0

    Default Re: Phone Number format

    my boss told me to do it...

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Phone Number format

    Ask him/her the same question.
    .

    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
    Nov 2011
    Posts
    80
    Plugin Contributions
    0

    Default Re: Phone Number format

    They said its because a lot of the time they get orders that have phone numbers with either one less number or an extra number added on, with three separate blocks ([xxx] [xxx] [xxxx] ) there would be less error from the customer. It doesn't seem necessary to me but thats what they want, any ideas?

    Thanks.

  6. #6
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Phone Number format

    Do you sell to countries outside of the USA?

    If so, forcing your telephone numbering format will cause problems. Other countries use different numbering systems.

  7. #7
    Join Date
    Nov 2011
    Posts
    80
    Plugin Contributions
    0

    Default Re: Phone Number format

    we sell to US and Canada...

  8. #8
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Phone Number format

    Here are some PHP examples using RegEx.

    You'd need to get otther to advise you on embedding it in your ZC code,


    http://plasticbrain.net/resources/ph...-phone-number/
    20 years a Zencart User

 

 

Similar Threads

  1. v150 Add Phone Number to Contact Us - phone number is not on the emails?
    By ljdream00 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 18 Apr 2012, 10:37 PM
  2. phone only product type change phone number
    By fabbabyjulia in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 13 May 2011, 11:50 AM
  3. Page Number and Phone Number Questions
    By CoolCarPartsOnline in forum Basic Configuration
    Replies: 3
    Last Post: 11 Nov 2008, 12:15 AM
  4. Wrong phone number format = issues when sent to Paypal
    By stride-r in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 1 Oct 2008, 09:23 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