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) »
  • Reset contribution page (and amount collected) when goal is reached
Pages: [1]

Author Topic: Reset contribution page (and amount collected) when goal is reached  (Read 1029 times)

alextronic

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 2
  • I do what I do
Reset contribution page (and amount collected) when goal is reached
December 01, 2009, 05:57:47 pm
Hi all,
Some of our "funds" are considered ‘recurring’ and need to be re-posted to the site once their goal amounts are completed (for example, "send a kid to a camp"). These "funds" are contribution pages which, once their goal amount is reached, need to start over again.

1. Is it possible to re-post the Project by resetting amount collected back to $0?
2. I have created private pages where the user can see where he/she has contributed, kind of a customized dashboard. It pulls info directly from CiviCRM database and it works great, but... How will this "re-setting contribution pages" affect the display of a Completed contribution on this user’s page?. For example, if a user contributes to one of these 'recurring' funds, will he/she be able to see a completed fund even though it has been re-set? How can that be achieved (if reseting contribution pages is possible)?

Thank you,
Alex.

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: Reset contribution page (and amount collected) when goal is reached
December 01, 2009, 07:03:07 pm

the amount collected is not stored in a table (and hence cannot be reset). its basically the sum of all the contributions associated with that contribution page

Any specific reason why you dont "copy" the contribution page and use the new contribution page whenever a goal amount is reached? Seems a much cleaner way of doing things

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

alextronic

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 2
  • I do what I do
Re: Reset contribution page (and amount collected) when goal is reached
December 02, 2009, 05:26:16 am
Quote
the amount collected is not stored in a table (and hence cannot be reset). its basically the sum of all the contributions associated with that contribution page

That's right--  I must assume then that this is an impossible task?

Quote
Any specific reason why you dont "copy" the contribution page and use the new contribution page whenever a goal amount is reached?

Well, these contribution pages that I'm talkgin about have an average goal amount of $ 50 and everyday one of them is fully funded, maybe more. In terms of administration/maintenance, the client needs to get rid of this tedious contribution-copying process.

I begin to think this is a very difficult thing to obtain. But if anyone comes up with a proposal, or even an insight to get started, that would be great.
On the other hand, I also think this feature might be very useful for others, too.

A.

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: Reset contribution page (and amount collected) when goal is reached
December 02, 2009, 07:27:44 am

Seems like your project dates/amounts are flexible. You can store those in a seperate table and then modify the widget PHP code

CRM/Contribute/BAO/Contribution.php, function getCurrentandGoalAmount

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) »
  • Reset contribution page (and amount collected) when goal is reached

This forum was archived on 2017-11-26.