Is this possible in the Admin? I set the minimum value to 5. Thing is my customers are entering their complete Postal Code with the additional digits (for example, 12345-0987 instead of just the standard 5 character 12345 Postal Code). When this happens the tax calculations are incorrect.
I tried limiting the input via HTML right on the page by deleting the php:
PHP Code:
<li>
<label class="inputLabel" for="postcode_shipping"><?php echo ENTRY_POST_CODE . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></label>
<?php echo zen_draw_input_field ('postcode', $_SESSION['postcode'], zen_set_field_length (TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"'); ?>
</li>
and using HTML:
HTML Code:
<input type="text" id="postcode" maxlength="5" size="5" name="postcode">
When I did this I set the minimum characters in the Admin to 5 as well. Now when customers enter their address an error comes up asking to enter their Postal Code as if they never did entered anything.
Also, I should note that I'm using the Numinix Quick Checkout plugin so this could lead me to think that it's running through the javascript.
Thanks
Bookmarks