rubygirl Posted December 8, 2002 Posted December 8, 2002 and how do I move the zip code field BELOW the state field in the customer sign-up and order areas? thanks!
blueline Posted December 8, 2002 Posted December 8, 2002 Go to http://www.oscdox.com and download the editing manual. This is an example in the manual. You are taken through the process step by step. -Chris Chris Sullivan
rubygirl Posted December 9, 2002 Author Posted December 9, 2002 Just downloaded it and am looking - thanks!!!
rubygirl Posted December 9, 2002 Author Posted December 9, 2002 okay so I downloaded and printed the doc - read the doc and followed the directions step by step - I however do not see anything different. I am dealing with an 11/29 snapshot (or so) and have only added Linda's Quantity contribution version 5.1 - I cannot figure out the problem - has anyone done this successfully and if so how? Thanks!
mthierfelder Posted December 11, 2002 Posted December 11, 2002 :arrow: I had the same task on my hands, a client was like "What's Post Code?", I agreed, who says that anyway? This thing come from Canada eh? Neways you'll find the precious bit of code located here: /catalog/includes/languages/english.php ...round about line 204 will be this: define('ENTRY_POST_CODE', 'Post Code:'); ...change it to this: define('ENTRY_POST_CODE', 'Zip Code:'); :wink: Installed Modules: Dynamenu, InfoBox Admin, Master Products v.1.2, Header Tags Controller, Multiple Products Manager, Quick Edit in Admin, Secure Admin, Ultimate SEO URL's, EZ Secure Order, Easy Populate v.2.76d MS2, AuthorizeNet_AIM, ChangeFinal Breadcrumb Title, FedEx Labels, Fedex Direct 2.06, How Did you Hear 1.5, Login a la Amazon, UPS XML 1.2.4, USPS Labels, USPS Methods API MS2
rubygirl Posted December 11, 2002 Author Posted December 11, 2002 Great - got the name changed to Zip instead of Post but now how do I move it below the state field? I would like it to read: City State Zip NOT Zip City State I have read the manual and changed the code but still no difference - anyone have this code editted correctly to have this result??? Thanks! PS - running snapshot 11/29 with Quality Contrib from Linda version 5.1. Thanks!
Guest Posted December 11, 2002 Posted December 11, 2002 To change the order how you want, open catalog/includes/modules/account_detail.php and move <tr> <td class="main"> <?php echo ENTRY_POST_CODE; ?></td> <td class="main"> <?php if ($is_read_only) { echo $account['entry_postcode']; } elseif ($error) { if ($entry_post_code_error) { echo tep_draw_input_field('postcode') . ' ' . ENTRY_POST_CODE_ERROR; } else { echo $postcode . tep_draw_hidden_field('postcode'); } } else { echo tep_draw_input_field('postcode', $account['entry_postcode']) . ' ' . ENTRY_POST_CODE_TEXT; } ?></td> </tr> after: <?php if (ACCOUNT_STATE == 'true') { ?> <tr> <td class="main"> <?php echo ENTRY_STATE; ?></td> <td class="main"> <?php $state = tep_get_zone_name($country, $zone_id, $state); if ($is_read_only) { echo tep_get_zone_name($account['entry_country_id'], $account['entry_zone_id'], $account['entry_state']); } elseif ($error) { if ($entry_state_error) { if ($entry_state_has_zones) { $zones_array = array(); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . tep_db_input($country) . "' order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo tep_draw_pull_down_menu('state', $zones_array) . ' ' . ENTRY_STATE_ERROR; } else { echo tep_draw_input_field('state') . ' ' . ENTRY_STATE_ERROR; } } else { echo $state . tep_draw_hidden_field('zone_id') . tep_draw_hidden_field('state'); } } else { echo tep_draw_input_field('state', tep_get_zone_name($account['entry_country_id'], $account['entry_zone_id'], $account['entry_state'])) . ' ' . ENTRY_STATE_TEXT; } ?></td> </tr> <?php } ?>
rubygirl Posted December 11, 2002 Author Posted December 11, 2002 THANK YOU!!!!! I followed the directions in the manual it didn't work - you will now allow me to sleep tonight :D Thank you!!!!
Joy-Bay Posted December 12, 2002 Posted December 12, 2002 the length of the zip code requires 6 digets,.. where I come from we only need five to ten. Is there a way to lower the requirement from 6 to 5? Thanks, Mike & Joyce www.joy-bay.com
greree Posted December 12, 2002 Posted December 12, 2002 The default setting for Zip Code is 4 digits. At least it is in the latest snapshot.
Joy-Bay Posted December 12, 2002 Posted December 12, 2002 Mine is set to 6:( I can't install the new snapshot with out the Host Admins running the wizard for me. Is there a way to edit something to fix that? Thanks, Mike & Joyce www.joy-bay.com
Guest Posted December 12, 2002 Posted December 12, 2002 You don't have to change snapshots to change any of those values. Go into your Admin Control panel and click on "Configuration". Then click on "Minimum Values" and set it how you want. When you are done click on "Maximum Values" and set those.
Joy-Bay Posted December 12, 2002 Posted December 12, 2002 Oh wow,.. :oops: I was even looking in there,... I feel like a dork now:( Thanks for the tip:) Thanks, Mike & Joyce www.joy-bay.com
Recommended Posts
Archived
This topic is now archived and is closed to further replies.