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 CiviContribute (Moderator: Donald Lobo) »
  • Contribution page Allow other amounts and Minimum Amount validation not working?
Pages: [1]

Author Topic: Contribution page Allow other amounts and Minimum Amount validation not working?  (Read 2121 times)

Arjan

  • Guest
Contribution page Allow other amounts and Minimum Amount validation not working?
March 01, 2010, 09:00:26 am
I created a contribution page as follows (using 3.1.3):
- No payment provider
- Pay later enabled
- Allow other amounts enabled
- Set a Minimum Amount of (for example) 1 euro.

Now users can submit the contribution form checking the 'Other Amount' option, but entering an amount less than the minimum does not throw a warning, and leaving the 'Other amount' field empty is also accepted (and the contribution amount is then not shown on the confirmation page or receipt email).

Reproduced here on demo: http://drupal.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=7. This is the 'Standing order' contribution page (that also includes two profiles).

Bug?

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Contribution page Allow other amounts and Minimum Amount validation not working?
March 02, 2010, 03:44:54 am
Arjan :
This is happening because the page has "Execute real-time monetary transactions" setting turned off.
Unchecking this option means that the contribution page has been configured for non-monetary transactions and hence turns off the monetary checks.

Checking the option would do the needful.

HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Arjan

  • Guest
Re: Contribution page Allow other amounts and Minimum Amount validation not working?
March 03, 2010, 08:29:37 am
That's what I thought at first, but I tried and it makes no difference.
http://drupal.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=5.

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Contribution page Allow other amounts and Minimum Amount validation not working?
March 03, 2010, 10:32:18 pm
Quote
That's what I thought at first, but I tried and it makes no difference.

Well the said form (http://drupal.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=5) does work as expected,
gives me an error saying "Contribution amount must be greater than 1.00" which is the minimum amount.

-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Arjan

  • Guest
Re: Contribution page Allow other amounts and Minimum Amount validation not working?
March 04, 2010, 04:34:28 pm
That's so weird! When I submitted the form without any value for the 'Other amount', this was accepted. Then the amount information was simply omitted from the confirmation step. I'll see if I can reproduce this again.

Arjan

  • Guest
Re: Contribution page Allow other amounts and Minimum Amount validation not working?
March 17, 2010, 02:50:51 pm
OK, I was wrong about entering an amount in the 'Other amount' field lower than the set minimum, this does throw a warning.
But selecting 'Other amount' and then leaving the value field for the 'Other amount' empty does not give a warning. The transaction is  completed, but the contribution amount is then omitted from the following confirmation page.

I've confirmed this on demo: http://drupal.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=4, so I've filed an issue here: http://issues.civicrm.org/jira/browse/CRM-5968.

Arjan

  • Guest
Re: Contribution page Allow other amounts and Minimum Amount validation not working?
April 20, 2010, 12:26:53 pm
There's a problem in 3.1.4 now that I think is related to this.

If you create a contribution page, with settings:
- Execute real-time monetary transactions enabled
- No payment processor
- Contribution Amounts section enabled
- Pay later option enabled
- Define some contribution amounts

Now when you make a contribution with one of the default amounts, the form throws an error saying "Amount is required field." next to the "other amount" field.

Tried this on demo as well: http://drupal.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=4

(When "Execute real-time monetary transactions" is not enabled, the value is accepted).
The original issue is here: http://issues.civicrm.org/jira/browse/CRM-5968.

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Contribution page Allow other amounts and Minimum Amount validation not working?
April 20, 2010, 12:40:28 pm
Arjan :

It looks like a bug to me, you might wanna file an issue for 3.1.5 in JIRA (http://issues.civicrm.org)

-Yashodha
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 CiviContribute (Moderator: Donald Lobo) »
  • Contribution page Allow other amounts and Minimum Amount validation not working?

This forum was archived on 2017-11-26.