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) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Search Postal code range
Pages: [1]

Author Topic: Search Postal code range  (Read 918 times)

Sutharsan

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
Search Postal code range
October 02, 2008, 03:45:19 am
In CiviCRM 2.0.4 it seems the advanced search option for Postal code range is no longer available. In 1.9 and 2.1 it is. But upgrade to Drupal 6 is not option yet. I found no questions on this in the forum or the the Issue Tracker.
Did I miss some settings option in 2.0?
Was it a coding error and can it be fixed with a hack?

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Search Postal code range
October 02, 2008, 06:48:37 am
I guess you could fix it /w a small hack since code/query for handling postal-code-range looks to be already present in 2.0.x (CRM/Contact/BAO/Query.php, line: 2074 - 2099).

So you 'll just need to replace the form element 'postal_code' with two text boxes - 'postal_code_low' &  'postal_code_high'.
Files: CRM/Contact/Form/Search/Criteria.php [line-104 to 154] and templates/CRM/Contact/Form/Search/Criteria/Location.tpl

(for any help check same files in v2.1 code-base)
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Search Postal code range

This forum was archived on 2017-11-26.