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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Include Membership Tokens with Contact data in emails and PDF letters
Pages: [1]

Author Topic: Include Membership Tokens with Contact data in emails and PDF letters  (Read 5193 times)

davidunwinubs13

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
    • Marylebone Association
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Include Membership Tokens with Contact data in emails and PDF letters
November 02, 2011, 09:34:09 am
In various forum posts (including my own), users have requested the ability to include CiviMember membership record tokens (Membership type, Membership Expiry date etc.) with CiviContact contact record tokens (Address, City, Postcode etc).

At the moment, you can only access Contact record tokens. This is a real problem if you want to send renewal reminders out by snail mail rather than email (Believe it or not some people either can't or don't want to receive renewals by email)

I have had a quote from a UK Consultant to create a hook between contact and membership records to make both sets of tokens available for membership renewal in an offline mode (ie create renewal letters)

The cost of this is approx. £2,600 (UK Sterling). We as a small organisation could not fund it all, but we would be prepared to share the costs with other organisations. If you would be interested in contributing and  being involved in defining the requirements, please respond to this post or email me at david.unwin@marylebone.org.

Thanks
David

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: Include Membership Tokens with Contact data in emails and PDF letters
November 02, 2011, 02:52:23 pm

1. Can you elaborate a bit more on the project scope. i.e. is it only restricted to exposing membership tokens on some specific membership renewal pages.

2. What membership fields do u want exposed as tokens

3. Can you ask them to describe how they plan on doing so.

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

davidunwinubs13

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
    • Marylebone Association
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Re: Include Membership Tokens with Contact data in emails and PDF letters
November 04, 2011, 03:34:36 am
Here are my answers:
1. Can you elaborate a bit more on the project scope. i.e. is it only restricted to exposing membership tokens on some specific membership renewal pages.
Answer - Effectively yes, I just want to be able to include any Membership token in a create email or create PDF letter ie something like this
---------------------------------------------------------------

{contact.individual_prefix} {contact.first_name} {contact.last_name}
{contact.street_address}
{contact.supplemental_address_1} {contact.supplemental_address_2}
{contact.city} {contact.postal_code}


Dear {contact.postal_greeting}


Your membership {membership_type} {membership_ entity} to {organization} expires on {membership_expiry_date}.


If you would like to renew your membership please send us {membership_fee} by return post


Thank you...............rest of letter
---------------------------------------------------------------------------------------------------------------


2. What membership fields do u want exposed as tokens


Answer: The ones described in answer 1, and any others that could be used ie membership start date for instance

3. Can you ask them to describe how they plan on doing so.


Michael McAndrew gave the following to me.. basic, but I could Ask Michael to elaborate

Your approach sounds sensible and would work.  I think it is also work exploring a fuller integration.  We would do this by adapting the already existing membership renewal functionality for the paper workflow, so we can, for example:
 adapt the logic that works out when a membership renewal email should be sent (and knows that a renewal email has been sent) so it is suitable for paper mailings

create a standard membership renewal paper letter template

There might be other functionality that we could hook into here, and I would advise a requirements gathering and specification stage where we gather input from the CiviCRM community before starting work on the code.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Include Membership Tokens with Contact data in emails and PDF letters
November 04, 2011, 03:47:22 am
Hey there,

We gave the quote for this, though it was for more work that just exposing membership tokens :)

I think it is also work exploring a fuller integration that takes advantage of membership model a bit more and does similar stuff to the bin/UpdateMembershipRecord.php script.

So the project would include
* adapting the logic that works out when a membership renewal email should be sent
* knows that a renewal email has been sent
* create a task - batch and print pdf letters for people whose membership is about to expire
* print a batch again in case you deleted them :)
* create a standard membership renewal paper letter template

There might be other functionality that we could hook into here, and I thought a requirements gathering and specification stage would be useful to get more feedback from folks.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Include Membership Tokens with Contact data in emails and PDF letters
November 04, 2011, 12:17:55 pm
If someone has several memberships will they all be listed or are you thinking that if you are sending to a Smart Group/Search for eg Membership Type X then it will only send relevant tokenised info?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Include Membership Tokens with Contact data in emails and PDF letters
November 07, 2011, 10:05:12 am
Quote
If someone has several memberships will they all be listed

that's a good point, pete.  i was thinking of doing this through the find memberships search, so only one would ever be listed.

having said that, it might be useful to display all memberships for some use cases.

Quote
or are you thinking that if you are sending to a Smart Group/Search for eg Membership Type X then it will only send relevant tokenised info?

my hunch is that that might be too hidden and not explicit enough??
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Mattlab

  • I’m new here
  • *
  • Posts: 26
  • Karma: 1
  • CiviCRM version: 1
  • CMS version: joomla
  • MySQL version: 4
  • PHP version: 4
Re: Include Membership Tokens with Contact data in emails and PDF letters
December 13, 2011, 08:08:53 pm
Does anyone know if this is possible? I need to be able to send a regular mail letter to my members who need a reminder to pay dues. Is there anyway to have the membership tokens in my Print PDF letter?

Thank you.

This is very important.

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: Include Membership Tokens with Contact data in emails and PDF letters
December 14, 2011, 09:09:12 am

yes this is possible via hooks:

http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification
http://en.flossmanuals.net/civicrm-developer-guide/

lbo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Mattlab

  • I’m new here
  • *
  • Posts: 26
  • Karma: 1
  • CiviCRM version: 1
  • CMS version: joomla
  • MySQL version: 4
  • PHP version: 4
Re: Include Membership Tokens with Contact data in emails and PDF letters
December 14, 2011, 11:48:40 am
Ah so I would need to program a custom hook to lookup the membership info and then put it into a token? Are there any plans to make this a part of the release?

nae

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • Play Australia
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 7.31
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Include Membership Tokens with Contact data in emails and PDF letters
February 26, 2012, 03:30:29 pm
I am wondering if this functionality has progressed at all?

We would be able to donate some funds towards an Australian firm working on this feature.

More control over the renewal reminder notice, and having access to membership tokens in email and PDF letters is needed for our org too.

Renaee Churches
playaustralia.org.au

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: Include Membership Tokens with Contact data in emails and PDF letters
February 26, 2012, 11:50:15 pm

might want to consider contributing to this MIH which adds significant improvements to the multiple renewal code

http://civicrm.org/mih#multremind

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

nae

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • Play Australia
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 7.31
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Include Membership Tokens with Contact data in emails and PDF letters
February 27, 2012, 02:44:41 pm
thankyou, will have a look.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Include Membership Tokens with Contact data in emails and PDF letters

This forum was archived on 2017-11-26.