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) »
  • Members dues and additional/other contribution amounts...
Pages: [1]

Author Topic: Members dues and additional/other contribution amounts...  (Read 3095 times)

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Members dues and additional/other contribution amounts...
April 03, 2008, 05:28:20 am
How does one separate members dues (for a membership form) from other amount contributions but allow both to show up on the same form.  Currently I have a membership sign up form with my membership types listed as a radio button set with their respective prices.  I want a member to sign up for a membership level by selecting the radio button.  This works.  If I process the form at this point just with the ratio buttons, the total members dues amount is charged to their credit card and shows up on their receipt.

However I want to add an other contribution amount field where they can type in an additional amount ... like $5.  Then I want this amount to get added to the membership amount.  So if the membership cost was $20, then they add the $5, it would total to $25 and show this as separate line items on their receipt.  The credit card would be charged for the $25.

When I try doing this with the other contribution amount field now it doesn't work quite like this.  Basically since they are both listed as members dues contribution types, the other amount field always needs to be filled out with the minimum fee for the order - which is the membership type fee.  I don't want the user to have to type this amount in since they already selected the radio button for it above it.  It seems to me that CiviContribute should just recognize this.  Why is it forcing the user to have to re-type this $ amount in along with their additional amount.  I want them to just type in their additional contribution.  Also, if they leave the field blank (they don't want to give an additional amount) it doesn't submit the form but tells them they need to put the minimum membership fee in that field.

Please help or point me in the right direction.  Thanks so much!!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Members dues and additional/other contribution amounts...
April 03, 2008, 11:30:31 am
Try this from Configure Online Contribution pages...
* Click Configure for your membership signup page
* Click Contribution Amounts - make sure "Contribution Amounts section enabled" is checked as well as "Allow other amounts", Save
* Click Membership Settings, and check "Separate Membership Payment", Save

Test-drive your page. You should see an optional "Additional Contribution" field below the Membership type / amount radio buttons. Any amount entered should show as a separate line item.
Protect your investment in CiviCRM by  becoming a Member!

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Members dues and additional/other contribution amounts...
April 03, 2008, 12:06:44 pm
There are issues I'm running into with this method and I'm wondering if it's a bug in the CiviCRM system?  When I add the additional "other amount" field it does not allow the person to submit the membership form without filling out that amount.  I don't want that amount to have to be required.  I want it as an additional amount field - they can choose to contribute $5 additional to their membership fee for instance.

The issue is that if they just type $5 in that field the form doesn't let them submit, since our smallest membership category amount if $20.  So it tells the person they must enter a minimum of $20.  Then if they enter $30 it doesn't just add $10 to the $20 membership.  It adds $30 and so the total is $50.  This doesn't make sense.  They should be able to enter any amount there, and not have to enter a minimum.

Is this possible?  Go to our form and you'll see what I mean:
https://www.origami-usa.org/redesign2/civicrm/contribute/transact?reset=1&action=preview&id=3

If you try and select a membership type, and then add another amount (less than the membership cost) it will not submit the form.

This does not seem correct.  There should be a way of entering any amount in the other contribution amount field??


Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Members dues and additional/other contribution amounts...
April 03, 2008, 01:08:49 pm
Hmm - I modified an existing Membership Signup / Contribution page on our demo as noted above, and it allows me to mark the $100 General membership and then enter a 5.00 Additional contribution.

http://drupal.demo.civicrm.org/civicrm/contribute/transact?reset=1&action=preview&id=2

Please review the configuration for this page:
http://drupal.demo.civicrm.org/civicrm/admin/contribute?reset=1&action=update&id=2
http://drupal.demo.civicrm.org/civicrm/admin/contribute?reset=1&action=update&id=2&subPage=Amount
http://drupal.demo.civicrm.org/civicrm/admin/contribute?reset=1&action=update&id=2&subPage=Membership (make sure "Separate Membership Payment" is checked on this form)

... and if you're getting different results, please replicate on the demo site and provide exact steps to recreate the problem.
Protect your investment in CiviCRM by  becoming a Member!

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Members dues and additional/other contribution amounts...
April 03, 2008, 01:30:38 pm
Well, this is weird. That demo site form is working exactly as we'd like ours to work.  Are you using a different version of CiviCRM there?  I'm using version 1.9.13019.  I notice on the demo site that the field for additional amount is titled:  Additional Contribution.  On our form it's titled:  Contribution Amount *.  And ours is required.  So there are differences here.

I'll poke around the demo form settings and see if I can match ours.  Would the different version of CiviCRM make a difference?


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: Members dues and additional/other contribution amounts...
April 03, 2008, 01:44:25 pm

the demo is runnining 2.0.2 which is the latest supported version. If you are using 1.9.x, you should definitely consider upgrading

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

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Members dues and additional/other contribution amounts...
April 03, 2008, 02:15:55 pm
Ah ha!  That could be the issue.  Is it relatively easy to upgrade?


backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Members dues and additional/other contribution amounts...
April 03, 2008, 02:23:24 pm
These are the current upgrade instructions correct?

http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrade+Drupal+Sites+to+2.0

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Members dues and additional/other contribution amounts...
April 03, 2008, 08:16:50 pm
Well, there's definitely something buggy in version 1.9.  I can't reproduce the issue in version 2 on the demo site.

So next question(s):

1) can I fix the issue in version 1.9?

2) If not how do I upgrade to version 2 when I'm running MySQL 4.1.22.  Will 2.0 run on MySQL 4.1?


backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Members dues and additional/other contribution amounts...
April 03, 2008, 08:28:15 pm
I reproduced the same issue on my other server running Drupal 5.6 and CiviCRM 1.9.  It makes the other amount field required here as well.  So I'm chalking this up to a bug in version 1.9 that must have been fixed in 2.0.  Too bad I can't upgrade running MySQL 4.1.


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: Members dues and additional/other contribution amounts...
April 03, 2008, 10:47:24 pm

1. I dont think it would be trivial to fix it in 1.9. If you can find the relevant issue which fixed this in 2.0 it might make it easier, else you'll need to debug it and figure what code changes are needed etc

2. We dont officially support MySQL 4.x with CiviCRM v2.0. I'm not aware of any MySQL 5 specific features that we use, you can give it a shot and try.

Better yet, you might want to convince your host to upgrade to a supported version of MySQL

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

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: Members dues and additional/other contribution amounts...
May 25, 2010, 06:21:31 pm
This is an old thread but it's about my exact question.

My client's draft site is running 3.1.2, but I am getting the same unintuitive behavior on the form as described above.

I have both membership amounts and contribution amounts configured on the page. I want the user to choose a membership level (say Individual - $25) and also have the option of choosing to make an additional contribution (say $10).

However, the contribution amounts I've configured are coming up as a required field, and the form will not submit unless the amount is >= the dues chosen.

So if I click the $25 membership radio button and also the $10 additional contribution button (or choose not to make an additional contribution), the form gives an error. (To get the desired total, I'd need to click the $25 membership level AND enter $35 in the contribution field, either by radio button or "other" textbox - pretty clunky and confusing.)

This client uses PayPal standard, so the option of separate transactions for dues and extra contribution is not supported. Does that mean we're out of luck in having an additional gift option on the page?

« Last Edit: May 25, 2010, 06:23:36 pm by m.e. »

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: Members dues and additional/other contribution amounts...
May 25, 2010, 08:24:33 pm

1. you should start a new topic for this (and point back to this topic if u think its relevant). seems a bit too old to be relevant, IMO)

2. can you try and reproduce this on the demo server

thanx

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Members dues and additional/other contribution amounts...

This forum was archived on 2017-11-26.