Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

UK Address Format


Hiroboy

Recommended Posts

Posted

My site has been up and running for a couple of months now, but I find the addresses are in the wrong format.

This mean I can't simply copy and paste them for labels etc

 

The Post Code is in the wrong place, not at the bottom of the address

 

I get this :

 

Jon Doe

1 Way Street

KT12 3FG

Maidstone

Kent

United Kingdom

 

when it should be :

 

Jon Doe

1 Way Street

aidstone

Kent

KT12 3FG

United Kingdom

 

Is it possible to change this format without upsetting the database ?

 

Thanks in advance

Steve

Posted

It is easy to change the date format. Each country in your admin has a default date format assigned to it (1-5 I think). Some of them are incorrect. These can be changed in Admin->Locations/Taxes

The date formats themselves can be edited using phpmyadmin in the table called something like 'address_format'

  • 3 years later...
Posted

there is a simple fix to this problem.

 

browse your address_format table in your shop database

 

edit address_format_id no. 4

 

in the address_format field, replace all with "$firstname $lastname$cr$streets$cr$city$cr$postcode$cr$country"

 

Save changes and logout.

 

Then go to your oscommerce admin and go to Localization/Taxe --> Countries --> United Kingdom

 

Edit and change address format to 4.

 

Any new addresses entered when checking out and in new orders will now be displayed in the correct format for UK addresses.

 

Note that I simply changed address format 4 and you can do the same to any other address format number.

 

Hope this works for you too!

  • 4 months later...
Posted

Thanks for the simple fix. Worked brilliantly.

 

If anyone is interested in Having the format

Name

Street

Town/City

County, Postcode

Country

 

Change the above to

 

$firstname $lastname$cr$streets$cr$city$cr$state, $postcode$cr$country

 

Hope it helps someone!

Posted

there is a simple fix to this problem.

 

browse your address_format table in your shop database

 

edit address_format_id no. 4

 

in the address_format field, replace all with "$firstname $lastname$cr$streets$cr$city$cr$postcode$cr$country"

 

Save changes and logout.

 

Then go to your oscommerce admin and go to Localization/Taxe --> Countries --> United Kingdom

 

Edit and change address format to 4.

 

Any new addresses entered when checking out and in new orders will now be displayed in the correct format for UK addresses.

 

Note that I simply changed address format 4 and you can do the same to any other address format number.

 

Hope this works for you too!

 

You can also add to the tabel as needed. I found that many of formats are incorrect. I just created a database record in address_format for each address format I needed. It's not too difficult.

  • 2 months later...
Posted

Hi are you editing the sql in phpmyadmin? im a bit confused how you have made this change?

 

ive clicked on address_format then i get 3 more choices , 1 of which is address_format_id - but from here i dont know what to do???

  • 2 weeks later...
Posted

Go the whole hog and search the add ons for UK Oscommerce. Its there somewhere. it includes most of the files to alter oscommerce to english from US.

 

Failing that have a look in the "How do i" sticky at the from of this forum.

REMEMBER BACKUP, BACKUP AND BACKUP

Posted

There are a couple of useful threads in my profile under "UK Your Site".

 

HTH

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Archived

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

×
×
  • Create New...