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) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Zip Code format problem in Simple Donate
Pages: [1]

Author Topic: Zip Code format problem in Simple Donate  (Read 695 times)

Flaf

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4.6.4
  • CMS version: WordPress 4.2.2
  • MySQL version: 5.1.69
  • PHP version: 5.3.3
Zip Code format problem in Simple Donate
January 07, 2015, 08:29:47 am
When trying to run the Simple Donate extension I noticed that the ZIP CODE field is using a validation template that does not work for a country using alphanumeric zipcode (like Canada)
The field require numeric only content. :(  (see attached screen shot)

Since the use of Canadian zip code works fine in all the core module it must be some formating specific to this extension.

(Note: this was found running Simple Donate in "test mode" from the main menu and using a sysadmin ID)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Zip Code format problem in Simple Donate
January 07, 2015, 09:07:59 am
i think simple donate was designed and implemented specifically in a US centric way, primarily to take advantage of http://ziptasticapi.com/ (to avoid folks entering city/state)

might want to contact (and potentially fund) the developers at web access to extend their work to include other countries

just checked and ziptastic does handle canada :) Some code changes might be required:

https://github.com/daspecster/ziptastic/issues/37

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Flaf

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4.6.4
  • CMS version: WordPress 4.2.2
  • MySQL version: 5.1.69
  • PHP version: 5.3.3
Re: Zip Code format problem in Simple Donate
January 07, 2015, 09:52:32 am
I've enable the ziptastic option but still end-up with the same error message.

So it seem that this is a US only extension for now.

Thanks for the suggestion.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Zip Code format problem in Simple Donate
January 07, 2015, 10:20:23 am

any chance your org can contribute code to make the extension work in canada (and potentially other countries also?) Would definitely help the extension gain more traction

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Flaf

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4.6.4
  • CMS version: WordPress 4.2.2
  • MySQL version: 5.1.69
  • PHP version: 5.3.3
Re: Zip Code format problem in Simple Donate
January 07, 2015, 10:39:40 am
I will certainly present a request to my management team about this.
But can you point me to the best way to contact the developper.
I will need a estimate cost before trying to get the funding.

Flaf

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4.6.4
  • CMS version: WordPress 4.2.2
  • MySQL version: 5.1.69
  • PHP version: 5.3.3
Possible workaround: Zip Code format problem in Simple Donate
January 07, 2015, 12:21:30 pm
I may have found a workaround for this problem.

In the "com.webaccessglobal.simpledonate/partials/simpledonate.html" file :

on line 70 I removed the "data-parsley-type" that was forcing the field to be numerical.
The "parsley-type" could be configure to use regular expression validation. That may be the way to go for a permanent fix. For now I will proceed with no validation on the zip code field.

I will test to see if a new donation gets process properly with this change in place.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Zip Code format problem in Simple Donate

This forum was archived on 2017-11-26.