CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Restrict address lookup to only US addresses
Pages: [1]

Author Topic: Restrict address lookup to only US addresses  (Read 988 times)

jimurl

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 0
  • CiviCRM version: 3.4.6
  • CMS version: drupal 6.22
  • MySQL version: 5+
  • PHP version: 5+
Restrict address lookup to only US addresses
December 05, 2011, 02:22:15 pm
Current behavior appears to be to use the address lookup when a contact is saved- no matter which country the address is in. The only address provider, right now, is the USPS, for US addresses.

The behavior I have seen is that addresses from other countries also get sent to the USPS address verification. It appears that the USPS system looks  at the zip code, and sometimes will overwrite some address data with a U.S address data at that zip code.

At the very least, it helps avoid a "USPS lookup failed" notice after saving a contacts location from out of the U.S..

The preferred behavior would be to only invoke the USPS address lookup for US addresses. This patch does just that. It's really trivial, but it's my first foray into Civi patch-writing.

So please check it out, make sure it doesn't break anything else before incorporating.

http://issues.civicrm.org/jira/browse/CRM-9299


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Restrict address lookup to only US addresses

This forum was archived on 2017-11-26.