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 CiviMail (Moderator: Piotr Szotkowski) »
  • Custom membership field not appearing as tokens in reminder mailings
Pages: [1]

Author Topic: Custom membership field not appearing as tokens in reminder mailings  (Read 610 times)

nant

  • I post frequently
  • ***
  • Posts: 143
  • Karma: 4
    • Joomlapolis
  • CiviCRM version: 4.3.4
  • CMS version: Joomla 2.5.11
  • MySQL version: 5
  • PHP version: 5.3
Custom membership field not appearing as tokens in reminder mailings
November 04, 2013, 07:37:50 am
I have created 2 custom fields in a membership field set.

I cannot seem to get these values to appear in a mailing.

Is there something I can do to get this working?

I would like to use such tokens in the reminder emails.
--
Nick (aka nant from CB Team)

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Custom membership field not appearing as tokens in reminder mailings
November 04, 2013, 08:31:44 am
By default CiviCRM does not support membership field token in mailings etc. So you will have to implement this tokens using hooks.

http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_tokens
http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_tokenValues

Hth

Kurund
Found this reply helpful? Support CiviCRM

nant

  • I post frequently
  • ***
  • Posts: 143
  • Karma: 4
    • Joomlapolis
  • CiviCRM version: 4.3.4
  • CMS version: Joomla 2.5.11
  • MySQL version: 5
  • PHP version: 5.3
Re: Custom membership field not appearing as tokens in reminder mailings
November 04, 2013, 09:04:45 am
Quote from: Kurund Jalmi on November 04, 2013, 08:31:44 am
By default CiviCRM does not support membership field token in mailings etc. So you will have to implement this tokens using hooks.

http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_tokens
http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_tokenValues

Hth

Kurund

Thanks - is there any sample code anywhere that I can read to figure out how to grab custom field data from membership area?
--
Nick (aka nant from CB Team)

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Custom membership field not appearing as tokens in reminder mailings
November 04, 2013, 10:25:46 am

Below link does have some information / hook examples:

https://github.com/civicrm/civicrm-drupal/blob/7.x-master/civitest.module.sample

You can also use api's to get custom data for memberships.

Kurund
Found this reply helpful? Support CiviCRM

nant

  • I post frequently
  • ***
  • Posts: 143
  • Karma: 4
    • Joomlapolis
  • CiviCRM version: 4.3.4
  • CMS version: Joomla 2.5.11
  • MySQL version: 5
  • PHP version: 5.3
Re: Custom membership field not appearing as tokens in reminder mailings
November 04, 2013, 10:52:45 pm
Thank you!
--
Nick (aka nant from CB Team)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Custom membership field not appearing as tokens in reminder mailings

This forum was archived on 2017-11-26.