Hi Damien,

I do not know where you're at yet, but someone posted an issue in the Addresses module asking whether we could transform the module to make use of your addressfield instead.

What I have been thinking is to create a separate library of all the countries/state information (and maybe later other parameters such as zip codes and cities...) Do you think that would be useful to your module? The library would let you access the information so you could verify that your fields are properly entered in regard to countries and states. You could also create a select box with all the countries and states as one would otherwise expect.

Thank you.
Alexis

Comments

rszrama’s picture

Status: Active » Closed (won't fix)

Hmm, tough call. The way this module is implemented at the moment, any country could have a .inc that provides a country specific edit form for the address. We do this already to provide a state select list for the U.S. However, trying to bake that sort of validation into textfield entry would be pretty rough... I think I'd just as soon encourage those people to integrate with a third party address validator. I doubt we'll go beyond country specific address forms here, although people could feel free to provide one for their country that provides proper state / province values.

Marking "won't fix" as I don't think there's much else to discuss here, but it can go to postponed if the issue needs to be considered further.

kvoltz’s picture

Hi Rszrama,

Do you know of any third party address field validation modules currently in existence? Unfortunately this issue is causing shipping issues with my store.

Thanks so much for the great module and the wonderful community.

rszrama’s picture

Depends on your country and their shipping services. For example, I'm pretty sure the US Postal Service offers an API for address validation; dunno about other countries or if that works for international addresses.

kvoltz’s picture

Thanks for the response. Instead of attempting this daunting task, I required that a shipping method be selected, and because my shipping options are coming directly from USPS, UPS and FedEx, if the address is wrong - you get nothing. By providing a message that says "there is something wrong with your shipping address, please go back and check" we have effectively leveraged USPS, UPS and FedEx as the "address verification" with zero extra development.

I was scratching my head on this one for a while, I just needed to think about it differently.

I hope this helps someone in a similar situation.