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 CiviMember (Moderator: Deepak Srivastava) »
  • send system email when changing member status
Pages: [1]

Author Topic: send system email when changing member status  (Read 579 times)

jennybertha

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 1
  • CiviCRM version: 4.4.4.
  • CMS version: joomla 3.x
  • MySQL version: 5.2.7
  • PHP version: 5.2
send system email when changing member status
July 22, 2012, 08:04:45 pm
I am trying to use the membership feature for a new program, the status is not changed based on time but based on other situations, so I was planing on changing the status mannualy and have a system message be sent to the member when the status is changed. 

I have run into a few problems.  First of all I am printing the Membership Status on the email,  because the email text will differ based on status.  But it is placing the old status and not the new one on the mail.

I would like to solve this one before I move on to the other issues I have.

Why is this happening??

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: send system email when changing member status
July 22, 2012, 08:20:57 pm

which email are you talking about? Can you elaborate a bit more on the workflow and which email file you are trying to modify

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

jennybertha

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 1
  • CiviCRM version: 4.4.4.
  • CMS version: joomla 3.x
  • MySQL version: 5.2.7
  • PHP version: 5.2
Re: send system email when changing member status
July 23, 2012, 09:33:26 am
I am using the system workflow template for Membership - Memberships - Signup and Renewal Receipts (off-line)

When I go to a membership and override the status and select send email, the Memberships - Signup and Renewal Receipts (off-line) is trigered and sent to the member´s email address.    I just added the $membershipStatus in the template.  And it is showing up as the old Status and not the new one.

Hope this is a bit more clear, Thank you for your help

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: send system email when changing member status
July 23, 2012, 09:52:22 am

Seems like we dont expose to smarty the new status. Your best bet would be to check the code and submit a patch that exposes the new status to the template. The developer book:

http://book.civicrm.org/developer/

is a good place to get started. You can ping us on IRC if you need some help or clarification

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 CiviMember (Moderator: Deepak Srivastava) »
  • send system email when changing member status

This forum was archived on 2017-11-26.