[Done v1.5.0] Phone number required even when chars set to 0
Getting this error when updating customer who has not provided a phone # (which I don't require):
Quote:
Errors have occurred during the processing of your form!
Please make the following corrections:
* The 'Telephone Number' entry must have at least 0 characters.
Re: Phone number required even when chars set to 0
Try making that field blank rather than zero.
Re: Phone number required even when chars set to 0
I blanked out the filed Telephone Number and now getting this error:
Quote:
Errors have occurred during the processing of your form!
Please make the following corrections:
* The 'Telephone Number' entry must have at least characters.
Re: Phone number required even when chars set to 0
Ya, you'll have to put something in that field.
Re: Phone number required even when chars set to 0
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?
Re: Phone number required even when chars set to 0
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.
Re: Phone number required even when chars set to 0
Actually, the bug was fixed in v1.5.0
Re: Phone number required even when chars set to 0
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?
Re: Phone number required even when chars set to 0
Quote:
Originally Posted 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?
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:
Code:
if (entry_postcode == "" || entry_postcode.length < <?php echo ENTRY_POSTCODE_MIN_LENGTH; ?>) { error_message = error_message + "<?php echo JS_POST_CODE; ?>";
error = 1;
}
Remove the part I've highlighted in red, and then as long as your "Minimum Length" setting for "Postal Code" is 0 it will allow it to be blank.
Re: Phone number required even when chars set to 0