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.