knifeman Posted February 4, 2005 Posted February 4, 2005 I saw a post a few days ago about moving the post code after the city and state on the account creation page. I thought this would look better for my site since I am in the US. I found this line in the catalog/create_account.php file $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']); and I moved it below the state code here: $city = tep_db_prepare_input($HTTP_POST_VARS['city']); if (ACCOUNT_STATE == 'true') { $state = tep_db_prepare_input($HTTP_POST_VARS['state']); if (isset($HTTP_POST_VARS['zone_id'])) { $zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']); } else { $zone_id = false; } } This change did not do anything to my pages that I could see. Evidently this is not the proper way to move an item, or I am not in the right file. I have learned a great deal in the past few weeks, but this one has me stumped. Could someone point me in the right direction?
ozcsys Posted February 4, 2005 Posted February 4, 2005 Look for the following <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> You will see the other fields setup the same way from <tr> to </tr> Just move them around to you like where they are and as always backup first. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
TCwho Posted February 4, 2005 Posted February 4, 2005 dont forget to also fix the pages where customers change thier shipping and billing address Drop_Shadow How Did You Hear About Us Email HTML Order Link ---- GMT -5:00
k1w1guy Posted February 10, 2005 Posted February 10, 2005 dont forget to also fix the pages where customers change thier shipping and billing address <{POST_SNAPBACK}> I believe you can change this in the Update Address Book page found at catalog/address_book_process.php But can you help me locate the line(s) of code to change? Example: FIND xxxxx CHANGE TO xxxxx Thank, Pete
ArtRat Posted February 10, 2005 Posted February 10, 2005 its a cut and paste job not a replace info. find the html row the <tr> </tr> stuff that holds the zip code info (copy all of it including the "if error" stuff) the entire row...highlight, right click copy. find the html row for the state info, paste the zip code row below the state row. before deleting first zip code row, load it to your browser. see if the new one is in the correct place. yes? delete the original row. No? undo your paste from before and try to paste it to the correct location... after the closing tag for the state info row. watch the php code in there too, make sure you get all the right ?> and }'s stuff inside the correct <tr> </tr> tags.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.