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) »
  • Including membership expiry in contribute field
Pages: [1]

Author Topic: Including membership expiry in contribute field  (Read 1625 times)

jt196

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 3
Including membership expiry in contribute field
October 01, 2007, 05:23:47 am
I'm managing my thank you letters through the CiviContribute module and wish to include a membership expiry date in the exported data.
I've modified the Contibute\Form\Task\Export.php file to include contact fields: Prefix, State Name, Last Name, First Name - and that seems to be working fine.

I'd like to include the individual's membership expiry date amongst the exported fields in the thank you letters that I'm merging from the file. Is there an easy way to do this in the Export.php file? Or will this require some intimate knowledge of php and drupal - which I don't have :(

Any ideas?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Including membership expiry in contribute field
October 01, 2007, 11:47:07 am
Does "membership expiry date" - refer to CiviMember membership end dates? If so, that value is included in the CiviMember >> Find Members export.
Protect your investment in CiviCRM by  becoming a Member!

jt196

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 3
Re: Including membership expiry in contribute field
October 01, 2007, 12:05:01 pm
Sorry Dave,

I should have been a little clearer. I'm managing the sending of thank you letters and welcome packs using a search for 'thankyou letter not sent' in the CiviContribute module, exporting those members who haven't had it checked, then doing a mail merge with those for the letters.

If I am sending thank you letters and welcome packs, I'd like to tell members when their membership/subscription expires.

James


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: Including membership expiry in contribute field
October 01, 2007, 12:41:31 pm

Adding any membership info to the contribution export will require some amount of php and sql knowledge. You'll basically have to "enhance" the query to retrieve that information also and i'm not sure if u can do it programmatically via CiviCRM search right now.

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

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Re: Including membership expiry in contribute field
October 01, 2007, 02:15:25 pm
One way to do this without programming knowledge (only works on a database that isn't super huge):
1. Set up an excel workbook configured to handle this repetitive task (three tabs: one for the contributions source, one for the membership source, one for the mail merge source.
2. Export your contributions just like you already do. That ends up on the contributions source worksheet.
3. Export you ENTIRE membership list for active members (ow whatever you equivalent of a 'current' status is) (from the find members command in CiviMember). That ends up on the memberships source worksheet.
4. You mail merge worksheet will be populated with date from both worksheets via excel formulas.

Things to look out for:
- Use the excel VLOOKUP formula to populate the expiration date for any contact ID (i.e. you take the CID in the contributions source, look it up on the memberships source, write the expiration date.
- Your memberships worksheet may have duplicate contact IDs. In this case VLOOKUP can fail. If you restrict your memberships just to current status, this problem should be minimized.

Once it is all set up correctly, every time you send out thank you letters, you just download two files (contributions and memberships), put them in the workbook, click refresh, do a quick sanity check to make sure the data is right, run your mail merge.

Probably take you a few hours to set it up and 10-15 minutes every time you complete the task.
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Including membership expiry in contribute field

This forum was archived on 2017-11-26.