Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Address from American format to British?


lucylou

Recommended Posts

Taken from Web-Projects excellent work

 

it has some o fthe elements you need

 

Open file catalog/includes/languages/english.php

 

-----------------------------------

 

Find the line:

 

define('ENTRY_STREET_ADDRESS', 'Street Address:');

 

Replace with:

 

define('ENTRY_STREET_ADDRESS', 'House/Flat Number and Street Name:');

 

-----------------------------------

 

Find the line:

 

define('ENTRY_SUBURB', 'Suburb:');

 

Replace with:

 

define('ENTRY_SUBURB', 'Second Line Of Address:');

 

-----------------------------------

 

Find the lines:

 

define('ENTRY_POST_CODE', 'Zip Code:');

define('ENTRY_POST_CODE_ERROR', 'Your Zip Code must contain a minimum of ' . ENTRY_POSTCODE_MIN_LENGTH . ' characters.');

 

Replace with:

 

define('ENTRY_POST_CODE', 'Post Code:');

define('ENTRY_POST_CODE_ERROR', 'Your Post Code must contain a minimum of ' . ENTRY_POSTCODE_MIN_LENGTH . ' characters.');

 

-----------------------------------

 

Find the line:

 

define('ENTRY_STATE', 'State/Province:');

 

Replace with:

 

define('ENTRY_STATE', 'County:');

 

-----------------------------------

 

Find the line:

 

define('ENTRY_CITY', 'City:');

 

Replace with:

 

define('ENTRY_CITY', 'Town/City:');

 

-----------------------------------

 

Open file catalog/includes/modules/checkout_new_address.php

 

-----------------------------------

 

Find the lines:

 

<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>

 

Remove these lines

 

-----------------------------------

 

Find the lines:

 

if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;

?>

</td>

 

</tr>

 

Insert after these lines:

 

<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>

 

-----------------------------------

 

Open file catalog/includes/modules/address_book_details.php

 

-----------------------------------

 

Find the lines:

 

<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>

 

Remove these lines

 

-----------------------------------

 

Find the lines:

 

if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;

?></td>

</tr>

 

Insert after these lines:

 

<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>

 

-----------------------------------

 

PLEASE HELP THIS CONTRIBUTION TO PROGRESS BY REPORTING ANY BUGS TO: [email protected]

 

Mark Simpson

 

You may also be intersted in the contribution itself, here is the link http://addons.oscommerce.com/info/4030

 

 

Regards

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...