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) »
  • is there any way to include site specific messages in reciept emails
Pages: [1]

Author Topic: is there any way to include site specific messages in reciept emails  (Read 2125 times)

rampkrm

  • Guest
is there any way to include site specific messages in reciept emails
July 25, 2008, 06:09:05 am
i have many contribution pages, opening each page and insert my message and submit is hard task for me. i tried to edit receiptmessage.tpl to include my site specific messages. my purpose solved. but i want to know is there any other way to achieve this.

i am good in using civicrm api and i can code drupal module if required. all i need is solution.

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: is there any way to include site specific messages in reciept emails
July 27, 2008, 11:30:17 pm

You did the right thing :) i'm assuming you made the change in your copy of the receiptMessage.tpl file. check: http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens

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

rampkrm

  • Guest
Re: is there any way to include site specific messages in reciept emails
July 28, 2008, 12:09:14 am
i am planning to crate a module in drupal which has some interface to store the site specific messages in my custom table. i will include a variable in RecieptMessage.tpl file. But how can i assign that variable to tpl file without modifying the core. can you suggest me a best way to do this.

can i use civicrm hooks line hook_civicrm_pre or hook_civicrm_post?

thank you in advance...

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: is there any way to include site specific messages in reciept emails
July 28, 2008, 12:18:40 am

You cannot do that currently. You will need to modify core in 2.0 and prior

In 2.1, you will be able to do this by implementing the 'postProcess' hook for the contribution form. In your hook implementation, you'll be able to write:

Code: [Select]
$template =& CRM_Core_Smarty::singleton();
$template->assign( 'varName', $varValue );

you'll then be able to use $varValue in your modified template

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

rampkrm

  • Guest
Re: is there any way to include site specific messages in reciept emails
July 28, 2008, 12:39:30 am
thank you very much for the support lobo. i will try download 2.1 from svn and do fallow.

rampkrm

  • Guest
Re: is there any way to include site specific messages in reciept emails
July 28, 2008, 03:18:16 am
i want to download civicrm 2.1. downloaded svn client and tried to checkout civicrm trunk. i dont have user name to authenticate. can you create one developer account for me. let me know if you want any information more from me.


thanks in advance.

rampkrm

  • Guest
Re: is there any way to include site specific messages in reciept emails
August 04, 2008, 12:05:31 am
at last i have downloaded civicrm 2.1 from svn. i am a stupid i was using import instead of checkout sorry...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • is there any way to include site specific messages in reciept emails

This forum was archived on 2017-11-26.