If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / [Done v1.5.0] Phone number required even when chars set to 0

[Done v1.5.0] Phone number required even when chars set to 0

Started by one_tall_man on 24 Feb 2012, 6:23 PM · Views: 3,820

Results 1 to 10 of 10
24 Feb 2012, 6:23 PM
#1
one_tall_man avatar

one_tall_man

Zen Follower

Join Date:
Feb 2009
Posts:
125
Plugin Contributions:
0

Post #1 by one_tall_man

Getting this error when updating customer who has not provided a phone # (which I don't require):

Errors have occurred during the processing of your form!
Please make the following corrections:

  • The 'Telephone Number' entry must have at least 0 characters.

My install: was Vanilla 1.3.9h, now 1.5.5b, Apache 2.4, PHP 7.0.6, MySQL 5.5.8 64b, Windows 7 64b, 8GB RAM, i3 3.3gHz
Modules: [Payment=Paypal] [Shipping=Canada Post 1.5.3 merged] [nonCAPTCHA]

24 Feb 2012, 7:09 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #2 by stevesh

Try making that field blank rather than zero.

24 Feb 2012, 7:58 PM
#3
one_tall_man avatar

one_tall_man

Zen Follower

Join Date:
Feb 2009
Posts:
125
Plugin Contributions:
0

Post #3 by one_tall_man

I blanked out the filed Telephone Number and now getting this error:

Errors have occurred during the processing of your form!
Please make the following corrections:

  • The 'Telephone Number' entry must have at least characters.

My install: was Vanilla 1.3.9h, now 1.5.5b, Apache 2.4, PHP 7.0.6, MySQL 5.5.8 64b, Windows 7 64b, 8GB RAM, i3 3.3gHz
Modules: [Payment=Paypal] [Shipping=Canada Post 1.5.3 merged] [nonCAPTCHA]

24 Feb 2012, 8:52 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

Ya, you'll have to put something in that field.

.
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.

27 Feb 2012, 8:28 PM
#5
one_tall_man avatar

one_tall_man

Zen Follower

Join Date:
Feb 2009
Posts:
125
Plugin Contributions:
0

Post #5 by one_tall_man

I don't really need customer phones, and they are able to create accounts w/o phone, but then I cannot edit the account information, as when saving, it throws errors. Any ideas?

My install: was Vanilla 1.3.9h, now 1.5.5b, Apache 2.4, PHP 7.0.6, MySQL 5.5.8 64b, Windows 7 64b, 8GB RAM, i3 3.3gHz
Modules: [Payment=Paypal] [Shipping=Canada Post 1.5.3 merged] [nonCAPTCHA]

27 Feb 2012, 8:48 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

As I said, put something in that field, and the error will go away. As long as you put at least something, it will work.

There's a bug that doesn't allow for 0 to override the check for empty submission in the admin screen. That may be fixed in a future version.

.
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.

12 Jul 2012, 3:57 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #7 by drbyte

Actually, the bug was fixed in v1.5.0

.
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.

13 Oct 2015, 8:43 PM
#8
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
531
Plugin Contributions:
3

Post #8 by marcopolo

I have postal code set to minimum 0 but when I edit a customer from admin and try to save my changes I'm getting this error:
The Post Code entry must have at least 0 characters. This is an Ireland customer which they do not have postal codes and it's blank.

I'm running Zen Cart 1.5.4, the above post says this was fixed?

marcopolo
Zen Cart 2.2.2 | PHP 8.5.13 | MariaDB 10.11.14

14 Oct 2015, 6:35 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #9 by drbyte

marcopolo:

I have postal code set to minimum 0 but when I edit a customer from admin and try to save my changes I'm getting this error:
The Post Code entry must have at least 0 characters. This is an Ireland customer which they do not have postal codes and it's blank.

I'm running Zen Cart 1.5.4, the above post says this was fixed?
The above posts were talking about phone number, not postal code.

If you want to allow blank postal codes, open /admin/customers.php, and around line 435 you'll see code like this:```
if ([B]entry_postcode == "" || [/B]entry_postcode.length < <?php echo ENTRY_POSTCODE_MIN_LENGTH; ?>) { error_message = error_message + "<?php echo JS_POST_CODE; ?>";
error = 1;
}

.
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.

15 Oct 2015, 8:17 PM
#10
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
531
Plugin Contributions:
3

Post #10 by marcopolo

Ok thank you!

marcopolo
Zen Cart 2.2.2 | PHP 8.5.13 | MariaDB 10.11.14