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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Add Logic to Workflow Emails
Pages: [1]

Author Topic: Add Logic to Workflow Emails  (Read 588 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Add Logic to Workflow Emails
May 27, 2011, 03:13:33 am
I want to be able to customize the text of the Contribution Receipt letter depending on the id of the contribution page. I'm not sure where to start this job, however.

Can someone give me a pointer?

It could be that that datum is available in the Smarty variables, but it would be easier/smarter to do the logic in PHP.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: Add Logic to Workflow Emails
May 27, 2011, 07:08:47 am

i think your best bet to do the mods is smarty. doing it in PHP would involve some core modification

there is a alterMail hook at the very end, just before sending the email. but i think its a bit too late at that stage

if you can take a look and see if there is a hook we can add to make this easier, let us know and we can discuss

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

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Add Logic to Workflow Emails
May 29, 2011, 03:14:32 am
OK, thank you.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Add Logic to Workflow Emails

This forum was archived on 2017-11-26.