3

Is there a way to add additional fields in the contribution tab on a contacts record?

1
  • Are you trying to create an new custom field against contribution record? Commented Sep 21, 2015 at 13:16

2 Answers 2

3

As Jon says you will need to write some code, it wouldn't be difficult to implement though.

What I tend to do is create a Civi extension or use an existing one as explained here.

Once done, you could use hook_civicrm_searchColumns to add an extra column header as explained here and then create a custom template, as documented here, of the file templates/CRM/Contribute/Form/Selector.tpl to output the value needed.

The downside of the searchColumns hooks is that you wont be able to sort the data for that specific value.

Hope that gives more insights.

2

It's not clear from your question if you're looking for a means to add a column without coding. If so, the answer is "no". This is a good example of what's hoped to be possible with the CiviCRM 5 form builder, but that's still a ways off.

If you're able to code, or know/hire someone who does, the relevant file is templates/CRM/Contribute/Form/Selector.tpl.

2
  • 1
    In order to add/modify a column in the summary tab or the built-in Contribution search, I believe the right file to target is templates/CRM/Contribute/Form/Selector.tpl
    – Andrei
    Commented Sep 21, 2015 at 15:57
  • Note: Andrei's answer is much better than mine! Commented Jan 14, 2016 at 15:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.