Guest Posted February 23, 2006 Posted February 23, 2006 Would like to change the zip code location to follow the state. Which file is this change made in? Thank you
AlanR Posted February 23, 2006 Posted February 23, 2006 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)
Guest Posted February 23, 2006 Posted February 23, 2006 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
AlanR Posted February 24, 2006 Posted February 24, 2006 AlanRThe 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. 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)
MeAndMom Posted February 24, 2006 Posted February 24, 2006 This is the result of making that change and only that change. 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.
Guest Posted February 24, 2006 Posted February 24, 2006 This is the result of making that change and only that change. Was able to make the change. Thanks to all for your help Steve
Guest Posted May 15, 2006 Posted May 15, 2006 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.