Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Zip Code File


Guest

Recommended Posts

Posted

Would like to change the zip code location to follow the state. Which file is this change made in?

Thank you

Posted

In catalog/create_account.php at about line 403 find:

 

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

<tr>

<td class="main"><?php echo ENTRY_CITY; ?></td>

<td class="main"><?php echo tep_draw_input_field('city') . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td>

</tr>

 

Cut the lines in red and paste them later on in the file, (around line 436) right after:

 

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

?>

</td>

</tr>

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

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted
In catalog/create_account.php at about line 403 find:

 

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

<tr>

<td class="main"><?php echo ENTRY_CITY; ?></td>

<td class="main"><?php echo tep_draw_input_field('city') . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td>

</tr>

 

Cut the lines in red and paste them later on in the file, (around line 436) right after:

 

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

?>

</td>

</tr>

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

 

 

AlanR

The zip code location did not change after making the suggested changes. Are there addidition files that need to be changed?

Thanks for the reply,

Steve

Posted
AlanR

The zip code location did not change after making the suggested changes. Are there addidition files that need to be changed?

Thanks for the reply,

Steve

This is the result of making that change and only that change.

zipcodechng.png

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted
This is the result of making that change and only that change.

zipcodechng.png

 

this works great! i was going to do the long and tedious us mail format mod, but this is wonderful. if you are using PWA, you also have to mod the order_info.php file too.

Posted
This is the result of making that change and only that change.

zipcodechng.png

 

 

Was able to make the change.

Thanks to all for your help

Steve

  • 2 months later...
Posted

This worked perfectly... it's amazing how much sense it all makes when you start looking at it. This forum ROCKS!! It would take me days to figure out these things without it, instead I'm fixing about 1 issue every 20 minutes!

 

Thanks!

Sheryl

Archived

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

×
×
  • Create New...