Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Missing Postcode box....


toefinger

Recommended Posts

Hello ,

 

on our site when customers try to input a different address it asks a postcode but does not display a field in which to type it.Could someone point me in the right direction to alter this?

 

i have included the customers email below to help explan the issue.

 

"Hello. Last night i intended to place an order for some vinyl from you and all was fine until i got to the 'change delivery address' field. I wanted to put my work address as no-one would be at my home address in the day. However, after clicking 'continue' I was warned the postcode must have a 'minimum of 4 characters'. This would be fine but there was no actual field to enter the postcode. I tried a few variations, adding the postcode into the last line of the address in the 'city' field (the same format in which my home address was displayed on the previous screen) but it still wasn't recognised and wouldn't let me go any further

 

thanks

 

Darren

Link to comment
Share on other sites

In catlog/includes/modules/checkout_new_address.php look for

<?php
 if (ACCOUNT_SUBURB == 'true') {
?>
 <tr>
<td class="main"><?php echo ENTRY_SUBURB; ?></td>
<td class="main"><?php echo tep_draw_input_field('suburb') . ' ' . (tep_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement">' . ENTRY_SUBURB_TEXT . '</span>': ''); ?></td>
 </tr>
<?php
 }
?>

Right below that you should have

		  <tr>
		<td class="main"><?php echo ENTRY_POST_CODE; ?></td>
		<td class="main"><?php echo tep_draw_input_field('postcode', $entry['entry_postcode']) . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo ENTRY_CITY; ?></td>
		<td class="main"><?php echo tep_draw_input_field('city', $entry['entry_city']) . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td>
	  </tr>

You may also want check that is in catalog/includes/modules/address_book_details.php as well.

Link to comment
Share on other sites

In catlog/includes/modules/checkout_new_address.php look for

<?php
 if (ACCOUNT_SUBURB == 'true') {
?>
 <tr>
<td class="main"><?php echo ENTRY_SUBURB; ?></td>
<td class="main"><?php echo tep_draw_input_field('suburb') . ' ' . (tep_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement">' . ENTRY_SUBURB_TEXT . '</span>': ''); ?></td>
 </tr>
<?php
 }
?>

Right below that you should have

		  <tr>
		<td class="main"><?php echo ENTRY_POST_CODE; ?></td>
		<td class="main"><?php echo tep_draw_input_field('postcode', $entry['entry_postcode']) . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo ENTRY_CITY; ?></td>
		<td class="main"><?php echo tep_draw_input_field('city', $entry['entry_city']) . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td>
	  </tr>

You may also want check that is in catalog/includes/modules/address_book_details.php as well.

 

hello thanks for helping me , i added the code because it was missing and now i get

 

Parse error: syntax error, unexpected '<' in C:\Inetpub\vhosts\kingunderground.com\httpdocs\catalog\includes\modules\checkout_new_address.php on line 64

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...