2009/08/19
Zip after State in Create Account
For those in the UK, Gary Burton’s osCommerce for the UK provides instructions for how to move the post code after county. Since the position of the zip code is just as inappropriate in the US as in the UK, I’m posting the equivalent instructions here.
First, make a backup copy of create_account.php. Since you are going to be modifying it, you want to have a known good copy available in case something goes wrong.
Look for the following code in create_account.php (line numbers are from a stock osCommerce install and may differ on your site):
| PHP | | copy code | | ? |
Copy this code and find:
| PHP | | copy code | | ? |
Just before that and after
| PHP | | copy code | | ? |
paste the code that you copied.
Now, the safe thing to do is to save the file (uploading to a test site if necessary) and view the page in the browser. If the page appears perfectly except that it now has two zip code boxes, then you can go back and delete the code from lines 403 to 406. If things are not okay, you can either try to figure out why or just restore your backup and start over.