If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / Sweden shipping address: user supplies an 'X' in the 'State' field

Sweden shipping address: user supplies an 'X' in the 'State' field

Started by d0ugparker on 26 Nov 2013, 8:04 PM · Views: 1,580

Results 1 to 3 of 3
26 Nov 2013, 8:04 PM
#1
d0ugparker avatar

d0ugparker

Zen Follower

Join Date:
May 2008
Location:
Near the water, somewhere...
Posts:
129
Plugin Contributions:
0

Post #1 by d0ugparker

This is the ship to address a Swedish customer provided for
our US store (modified for privacy):

FName LName
Bbbb gggg 16B
Hhhhhh, 82452
[space]X, Sweden

I'm not familiar with actual Swedish addresses, but I looked
at the customer address in the Admin side and it's of the form

Name
Street
City, code
State, Country

Of concern is the 'X' in the State field. I'm guessing they're
not able to ship unless the field is non-blank, so an 'X' was
added. Also of note is the space before the 'X.'

Not knowing how complicated Zencart's internal address
book entries are in relation to their selected countries of
origin, is it worthwhile for me to start a thread which may
(or may not) point out a need to modify the internal
Zencart address standard for addresses originating in Sweden?

For example, is the internal address book sophisticated
enough to label an address field 'optional?' Is it sophisticated
enough to hide fields when they're not necessary for a
particular country, based on its overall post address structure?
Is the address format for Sweden in need of an update
internally for Zencart which would mark and recognize
Swedish addresses as not needing a State field entry?

Regards,

27 Nov 2013, 5:59 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #2 by mc12345678

d0ugparker:

This is the ship to address a Swedish customer provided for
our US store (modified for privacy):

FName LName
Bbbb gggg 16B
Hhhhhh, 82452
[space]X, Sweden

I'm not familiar with actual Swedish addresses, but I looked
at the customer address in the Admin side and it's of the form

Name
Street
City, code
State, Country

Of concern is the 'X' in the State field. I'm guessing they're
not able to ship unless the field is non-blank, so an 'X' was
added. Also of note is the space before the 'X.'

Not knowing how complicated Zencart's internal address
book entries are in relation to their selected countries of
origin, is it worthwhile for me to start a thread which may
(or may not) point out a need to modify the internal
Zencart address standard for addresses originating in Sweden?

For example, is the internal address book sophisticated
enough to label an address field 'optional?' Is it sophisticated
enough to hide fields when they're not necessary for a
particular country, based on its overall post address structure?
Is the address format for Sweden in need of an update
internally for Zencart which would mark and recognize
Swedish addresses as not needing a State field entry?

Regards,

So, was looking through various threads about this, in addition I've been trying to determine the affects of picking different countries upon sign-in... Not sure if my database is properly updated, or if the references that I found were correct; however, it is possible that the address format is incorrect in your ZC... In my database, Sweden is identified as having an address format of 1, which review of multiple sources indicates would require state to be populated.

To have Sweden addresses populated as above, you would need to set Sweden to address format 5. (This is based on looking up the address format used for Sweden:
Name
Street Number Apt floor (Customer must provide in this sequence, as ZC does not capture street number separate from street name)
Postal Code City
Country

As to whether the customer will see a * adjacent to the State listing or the response of the site if state drop-down is selected once the country is selected I couldn't tell you off hand. I would think that if the customer omitted the state information upon submission that the site will process the address properly and allow continued entry. As to what it would take to verify/validate/update the remaining country address formats?! well, that's another thing entirely.

Oh yeah, sorry if I forgot to mention where to modify the above. From admin panel go to Locations/Taxes -> Countries, then look at page 9 (at least that's where I found Sweden), edit Sweden, then edit the address format to 5 instead of 1.

Best of luck! Sorry for not trying to answer sooner, I thought someone else may have a go at it.

As to the remaining questions you ask? Too much for me to think about at the moment. My thoughts have been more about helping other get on their feet and moving forward or fixing issues that prevent that from happening...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

27 Nov 2013, 6:27 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #3 by mc12345678

mc12345678:

So, was looking through various threads about this, in addition I've been trying to determine the affects of picking different countries upon sign-in... Not sure if my database is properly updated, or if the references that I found were correct; however, it is possible that the address format is incorrect in your ZC... In my database, Sweden is identified as having an address format of 1, which review of multiple sources indicates would require state to be populated.

To have Sweden addresses populated as above, you would need to set Sweden to address format 5. (This is based on looking up the address format used for Sweden:
Name
Street Number Apt floor (Customer must provide in this sequence, as ZC does not capture street number separate from street name)
Postal Code City
Country

As to whether the customer will see a * adjacent to the State listing or the response of the site if state drop-down is selected once the country is selected I couldn't tell you off hand. I would think that if the customer omitted the state information upon submission that the site will process the address properly and allow continued entry. As to what it would take to verify/validate/update the remaining country address formats?! well, that's another thing entirely.

Oh yeah, sorry if I forgot to mention where to modify the above. From admin panel go to Locations/Taxes -> Countries, then look at page 9 (at least that's where I found Sweden), edit Sweden, then edit the address format to 5 instead of 1.

Best of luck! Sorry for not trying to answer sooner, I thought someone else may have a go at it.

As to the remaining questions you ask? Too much for me to think about at the moment. My thoughts have been more about helping other get on their feet and moving forward or fixing issues that prevent that from happening...

So, last thing... After a little testing with using state as dropdown and also not... Though I didn't actually create an account, I am thinking that regardless of what the customer enters into the state/province field, if they have chosen the country of Sweden with the address format of 5, when information is presented for addresses, the state/province information should be omitted... It may be helpful in the areas where addresses are filled to indicate to the customer that they are required to fill all fields with a *; however, the information presented will be dependent on the destination. This way the customer need not be concerned with that additional content. I did also find that there is an option to provide minimal account information... I'm not sure if this completely removes fields from the screen or if it simply makes them not required. It may be possible to make state a non-required field; however, then when a state/province really is needed, if a dropdown option is not selected or the state/province isn't provided, research/communication would be needed to properly make contact...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...