Hi Paul,
Yeah, a bit of editing to do this. There could be other files too that check postcode. Off the top, I think these would be ones to start with:
eg /catalog/address_book_process.php, /catalog/create_account.php
Code:
if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) {
$error = true;
$messageStack->add('addressbook', ENTRY_POST_CODE_ERROR);
}
comment out with:
Code:
/* if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) {
$error = true;
$messageStack->add('addressbook', ENTRY_POST_CODE_ERROR);
} */
And then the 'display' in others:
eg /catalog/templates/content/create_account.tpl.php
Code:
<tr>
<td class="main"><?php echo ENTRY_POST_CODE; ?></td>
<td class="main"><?php echo tep_draw_input_field('postcode') . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>
</tr>
Comment out with:
Code:
<!--// <tr>
<td class="main"><?php echo ENTRY_POST_CODE; ?></td>
<td class="main"><?php echo tep_draw_input_field('postcode') . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>
</tr> //-->
(Probably also a field in /catalog/templates/content/contact_us.tpl.php although that one would be optional to complete)
Simon