Results 1 to 5 of 5
  1. #1
    Join Date
    May 2006
    Location
    Texas
    Posts
    565
    Plugin Contributions
    4

    Default Blank Phone Number

    When I was about to ship an order, I noticed something was missing on the order itself. The customer's telephone number. I have required this on my signup form, so I went and tested to see if it could be submitted blank - gave me a javascript pop up message stating it needs to be 10 characters.

    I put in 10 spaces and pressed submit again - the account was created successfully. If I put in "abcdefghij" for the 10 characters, it will also let me get through.

    Shouldn't this field be checked to see if it contains 10 numbers, instead of 10 characters?

    Running 1.3.7 here, no modifications to create_account pages whatsoever

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Blank Phone Number

    That field is operating as it was designed. So this isn't a bug.

    And what happens if your customer doesn't have a phone number?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    May 2006
    Location
    Texas
    Posts
    565
    Plugin Contributions
    4

    Default Re: Blank Phone Number

    So even if its required, a customer should be able to bypass it? That doesn't make sense.

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

    Default Re: Blank Phone Number

    Even if it verified there were 10 digits in the fields you can still get around that by giving a phony number...
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

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

    Default Re: Blank Phone Number

    Kim's right that folks can put any digits in the field and be accepted.

    I would agree that trimming the results might be prudent so as to prevent the use of spaces from blatantly providing bogus data.

    But doing any further field validation becomes quite complex when you consider that Zen Cart isn't only designed for US-based telephone numbers / address format / language / currency, etc. There are many different formats for telephone numbers internationally, so enforcing a minimum number of characters is about the best that can be done unless you want to get incredibly creative.
    .

    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.

 

 

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. Paypal IPN issue "incomplete information" -- when cust phone number blank
    By KTNaturals in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 25 Apr 2007, 10:43 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