Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cluckeyo

Address Format for Sweden

Recommended Posts

Is there somewhere I can go that will explain about address formats. I am adding Sweden to my shipping options and where I go to add the country, it asks for the address format and gives a multiple choice of 1 - 5. Any help will be appreciated.

Share this post


Link to post
Share on other sites

Address formats are stored in the database table:  address_format

You now need to determine how a swedish address is set out...and insert a new format into the table.  I cannot remember if there is a page in admin to allow you to do that, so might need to be done direct on the database using (eg) phpmyadmin.

Share this post


Link to post
Share on other sites

These are the address formats you can choose from in Admin -> Locations/Taxes -> Countries as they appear in the database

(the number is the address format id, $cr means a new line. the section with the / is the summary format)

(1, '$firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country', '$city / $country'),
(2, '$firstname $lastname$cr$streets$cr$city, $state    $postcode$cr$country', '$city, $state / $country'),
(3, '$firstname $lastname$cr$streets$cr$city$cr$postcode - $statecomma$country', '$state / $country'),
(4, '$firstname $lastname$cr$streets$cr$city ($postcode)$cr$country', '$postcode / $country'),
(5, '$firstname $lastname$cr$streets$cr$postcode $city$cr$country', '$city / $country');

The only way to change them is by editing the database correctly.


osCommerce user since 2003! :thumbsup:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×