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) »
  • Adding fields to Contributions tab for a Contact
Pages: [1]

Author Topic: Adding fields to Contributions tab for a Contact  (Read 706 times)

pbarmak

  • I post occasionally
  • **
  • Posts: 111
  • Karma: 3
  • CiviCRM version: 3.3.5
  • CMS version: Pressflow 6.19
  • MySQL version: 5.1
  • PHP version: 5.2.10
Adding fields to Contributions tab for a Contact
March 04, 2011, 03:10:15 pm
Hey all, our team would like to modify what shows up on the Contributions tab for a Contact.   Currently, it's Amount, Type, Source, etc.  We'd like to add a couple of custom fields and the soft credit name.  And possibly remove some other fields we don't use much (like Premium).

I'm trying to figure out where I need to make modifications, but it seems like a rather complex thing, I'm wondering if I'm looking at the right places.  it seems like CRM/Contribute/Selector/Search.php is what has the column headers, but I don't know where to look from there (seems like it's calling Contact/BAO/Query, but not sure how/where to modify that).  Could some one point me in the right direction?  Maybe with some details on what may need modification.

If there is a better way to do this, like just replacing the tab with a custom tab or finding the tpl and having it call our own custom php, I'd love instruction on that, I don't the best method for creating a custom tab like that.

Thanks so much.  The folks here are loving the new version and all we can do with Civi.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Adding fields to Contributions tab for a Contact
August 29, 2011, 10:19:41 am
I'm looking to do the same thing. Any pointers?
Try asking your question on the new CiviCRM help site.

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: Adding fields to Contributions tab for a Contact
August 29, 2011, 10:33:26 am

http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmsearchColumns

Its actually a really small patch. So if u need it now, backporting will not be too hard

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) »
  • Adding fields to Contributions tab for a Contact

This forum was archived on 2017-11-26.