This is a discussion on Post Code not required within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello, I do not need the Post Code field to be required, as I am based in Ireland and Post ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hello, I do not need the Post Code field to be required, as I am based in Ireland and Post Codes are only used in some areas. Anybody know how to disable the javascript error for the Post Code field? I know I can change the field definition on the db via phpMyAdmin, but I'm not sure how to get rid of the javascript error message. Any help would be greatly appreciated. Danny O'Grady |
|
#2
| |||
| |||
| Danny, To remove the javascript alert for the Post Code. Open 'includes/form_check.js.php' around line 111 you will see this: Code: if (document.account_edit.elements['postcode'].type != "hidden") {
if (postcode == '' || postcode.length < <?php echo ENTRY_POSTCODE_MIN_LENGTH; ?>) {
error_message = error_message + "<?php echo JS_POST_CODE; ?>";
error = 1;
}
} hth Mike |
|
#3
| |||
| |||
| Mike, Thank you so much for your help, its well appreciated. Regards Danny |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help required - product is a code stored in a database | melfalcon15 | osCommerce 2.2 Modification Help | 0 | 09-29-2005 09:33 AM |
| Please I need help with post install an error | MeGaHeRtZ | osCommerce 2.2 Installation Help | 1 | 06-26-2003 09:22 AM |
| Post Installation Erros | harken | osCommerce 2.2 Installation Help | 1 | 02-20-2003 07:47 AM |