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) »
  • Help with Offline contributions --Please--
Pages: [1]

Author Topic: Help with Offline contributions --Please--  (Read 2263 times)

nightlrd

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Joomla 1.5
Help with Offline contributions --Please--
January 04, 2009, 03:48:16 pm
Hi all,

I am setting up multiple contribution pages with the donation widget included to show how close we are to goal. My question is, how do I enter an offline donation recived via check to associate it with the specific contribution page so it will be messured on the widget? Your help on this is so appreciated and I am sorry if this is an obvious question. Again thanks  ;D

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: Help with Offline contributions --Please--
January 04, 2009, 05:32:54 pm

I dont think you can associate an offline contribution to a contribution page via the UI.

Your best bet will be to modify the database directly for such contributions (if not a lot). You could also patch the offline contribution code to collect the contribution page. If you do the latter please publish your code so other folks can use it. If you need help, ping us on IRC

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

vanalive

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 1
Re: Help with Offline contributions --Please--
January 07, 2009, 06:30:51 pm
Ugly hack but...

/sites/all/modules/civicrm/CRM/Widget/Widget.php


Either remove this line:
AND    contribution_page_id = %1

Or do what I did and put a conditional clause that removes it only for one contribution page.  It will list all.  I guess you can play around with the mysql query to get your exact results.


if ($contributionPageID != 4)
        {$query = "
SELECT count( id ) as count,
       sum( total_amount) as amount
FROM   civicrm_contribution
WHERE  is_test = 0
AND    contribution_status_id = 1
AND    contribution_page_id = %1";} else {$query = "

SELECT count( id ) as count,
       sum( total_amount) as amount
FROM   civicrm_contribution
WHERE  is_test = 0
AND    contribution_status_id = 1";

}

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Help with Offline contributions --Please--
January 08, 2009, 10:00:44 am
Can you not enter it as an on-line donation, paid by check?  I've got my contribution pages set up that a person can either pay now by credit card or pay later by check. 

I've been busy entering lots of off-line contributions.  But then, I've only got one contribution page right now.
Thanks to those who help create and enhance civiCRM!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Help with Offline contributions --Please--

This forum was archived on 2017-11-26.