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) »
  • Add other amount price field in priceset
Pages: [1]

Author Topic: Add other amount price field in priceset  (Read 717 times)

mallezie

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • PHP version: 5.4
Add other amount price field in priceset
October 31, 2014, 02:18:01 am
Is it possible to add a 'other' amount pricefield to a priceset?

You can add a text box field with a value of 1, and then use the amount to set a freely chosen price.
This however doesn't seem to work if you would like to allow persons to add a decimal number.

For example, i'm trying to create a priceset with following fields:
-registration (fixed amount, number of persons)
-extra donation (extra free to choose amout people can add).

If i use the value of 1 trick, i'm not allowed to enter an extra donation of €1.50 (mind the decimal value). I can only add integers.
I'm trying to add this in a pricefield, since that way i can choose different financial type's for the price-set.

I found that on a contribution page you can add a 'other_amount' field, but i'd like to do this inside a priceset.

KilakwaBT

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 11
  • CiviCRM version: 4.5.5
  • CMS version: WordPress 4.1
  • MySQL version: 5.1.68
  • PHP version: 5.3
Re: Add other amount price field in priceset
October 31, 2014, 08:32:07 am
I just created a field in a price set with a value of 1. In the preview it works fine when I enter 1.5 I get a total of $1.50.Works in conjunction with other fields also.
 
I tested it in Ver 4.5.2. I have a an front end form in Ver 4.4.6 that is working fine with the same setup.

It should work.

mallezie

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • PHP version: 5.4
Re: Add other amount price field in priceset
October 31, 2014, 08:41:04 am
It indeed works in the preview, but not when you try to create a real contribution using that priceset.
The 'preview' total account is calculated correctly, but trying to save the contribution triggers the 'error'.

Just reconfirmed on the drupal / civi 4.5.2 demo site.

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Add other amount price field in priceset
October 31, 2014, 11:42:14 pm
If you feel that whole pound/dollar/euro amounts are too restrictive, then you can set the value to 0.01 and make it clear on the field label that they should enter the number of cents/pence they want to donate.

mallezie

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • PHP version: 5.4
Re: Add other amount price field in priceset
November 03, 2014, 12:57:37 am
Thanks Joanne, that's the setup i'm using now.
For now i sort of need this to migrate old data to civicrm, which had this 'free amounts' with cents. Could be for the future the limit isn't really a problem.
I however think this could be a good addition to CiviCRM since that seemed logical to me. Best would probably to create an issue for this? Or does one already exists?

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Add other amount price field in priceset
November 03, 2014, 08:53:25 am
Try searching the issue tracker for it.

If an issue doesn't exist, please create one -  report this as a bug, giving detailed steps to reproduce and referencing this thread.

civicrm.org/bug-reporting
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

mallezie

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • PHP version: 5.4
Re: Add other amount price field in priceset
November 04, 2014, 12:43:35 am
Filed the issue at https://issues.civicrm.org/jira/browse/CRM-15557

Found a relevant issue, and referenced it also.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Add other amount price field in priceset
November 05, 2014, 02:59:54 am
Thanks :)
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Add other amount price field in priceset

This forum was archived on 2017-11-26.