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 Custom Field to CiviContribute Export
Pages: [1]

Author Topic: Adding Custom Field to CiviContribute Export  (Read 886 times)

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Adding Custom Field to CiviContribute Export
April 23, 2009, 05:51:25 pm
We just finished adding a custom field to the basic listing and print reports for contacts and now wish to do a similar task of adding a custom field to the export file for CiviContribute and CiviMember.   We have a custom field for organization chapter and wish to manage memberships and contributions by chapter, so having this contact custom field in the CiviContribute and CiviMember extract file would be very useful.

I thought I'd ask to see if anyone had done this before, befor starting to hunt through the code.

Any tips or ideas on where to start?

Thanks.
« Last Edit: April 23, 2009, 10:16:41 pm by Denver Dave »

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 Custom Field to CiviContribute Export
April 23, 2009, 08:20:19 pm

try adding it in:

CRM/Contribute/BAO/Query.php, function defaultReturnProperties

you might then need to go upstream and add it to the row array etc

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 Custom Field to CiviContribute Export

This forum was archived on 2017-11-26.