7

Insert {debug} into a message template then perform the relevant action (ie make an online contribution if you modified Contributions - Receipt (on-line)). The email sent will contain a list of all the smarty variables assigned to that template


5

With your first error, the issue is with TCPDF, the standard PDF library that CiviCRM ships with. TCPDF isn't very efficient, and takes a lot of memory when you try to generate a large PDF. Unfortunately, the other two PDF options have issues: DomPDF doesn't support all of the features TCPDF does. wkhtmltopdf is great, but is written in C, which means ...


5

If you want it in addition to the default/generic banner you can probably add it in at the top of the "Thank you and receipting" section of the event. If you want to use it in place of the generic banner, you may need to customize the template with some If/Then logic, checking the event ID in the smarty template somehow. Here's an example for a Contribution ...


5

Make two different Message Templates yourself and use CiviRules (also requires Email API extension) to send out the correct one based on the Event someone registers for. If you need payment details as well then make your default CiviCRM Event Registration template just contain the default bits like profile and payment/receipt details. The second Email via ...


4

Here's an attempt to address this with a token that can be used with Fuzion's CiviToken extension. With that extension installed, this token file can be added to a tokens directory in your custom PHP folder to provide a "Latest Contrib Soft Credit Name" token. (It checks the latest contribution and if there is a soft credit adds the name(s) in this token). ...


4

Yes, what you are describing is the default setting for CiviCRM. Only Message Templates and Automated Messages make use of the so called smarty template engine. The smarty template engines makes "if"-statements possible. The reason for this is that these Templates and Automated Messages are for more experienced users and administrators. Normal mails, ...


4

"edit message templates" is a separate permission in CiviCRM 4.6 (see screenshot below), so you'll get this functionality by upgrading. Upgrading is also a good idea, since version 4.5 isn't a "Long Term Support" version of CiviCRM and thus doesn't receive security updates.


4

Site had a configuration Who can register accounts? as administration only because of which I was not getting the screen where the user will be created before you fill PCP informations. After I changed the settings everything seems to be working fine. Configuration page link: example.org/admin/config/people/accounts


4

CiviCRM 4.6 has a new permission to edit templates separate from "Administer CiviCRM", and I'm almost certain the issue you're having is that you need to add permissions post-upgrade. From your URL, I'm pretty sure you're running Drupal (and I think I knew that anyway!) so go to http://secularstudents.org/admin/people, select the "Permissions" tab, and ...


4

You can insert the {debug} Smarty token into your template: http://forum.civicrm.org/index.php/topic,14845.msg63471.html#msg63471


4

I almost have this polished, just one little piece that may be beyond what my pea brain can handle. The short of it is that from the affected contact you need to send an e-mail with tokens. (I've put this into a template.) In the body of the e-mail put a link similar to this: https://yoursite.com/civicrm/?page=CiviCRM&q=civicrm/contribute/updatebilling&...


4

Don't think you have a direct variable to use in the template. Worth trying an extension to provide this? It can be done by simply writing something like below in your hook. function yourextension_civicrm_postProcess($formName, &$form) { if ($formName == "your_form") { //Check if user has an active membership of type "General". $...


4

You can use CiviCRM api through smarty to retrieve if membership is active for a contact. You can achieve this by Turn on CIVICRM_MAIL_SMARTY (set to TRUE or 1) in civicrm.settings.php add below api snippet in your message template ($result will hold result of api call) {capture assign=contactId}{contact.contact_id}{/capture} {crmAPI var='result' entity='...


4

This requires editing of the Contribution Invoice Receipt - Message Template. End result looks like this: I'll detail the steps below to get the header part. The header portion contains two tables: the first table is used to add your logo. The second table has the formatting for the Name and Address section: note that we're putting the Member's Name and ...


3

Check if you have any Scheduled Reminders based on Memberships and ensure your 'lifetime' Membership Type is excluded from that.


3

Regarding your second issue: When a PDF is generated, CiviCRM can NOT put anything else on your screen before sending the PDF header. However, you're getting a "Strict Standards" notice - which comes before the PDF header. The second line of your second message is saying, "Hey, I can't create a PDF because I showed you that notice first." Now that's not ...


3

I ran into a similar issue of custom tokens not populating for scheduled reminders. The workaround in Brian Shaughnessy's comment on CRM-11153 fixed it for me: early in tokenValues put: $single = false; if (!is_array($contactIDs)) { $contactIDs = array( $contactIDs ); $origValues = $values; $single = true; } then at the very bottom put: ...


3

I've been using something like this by adding HTML to the CiviMail Header and Footer options. https://gist.github.com/danaskallman/57616e7d17cc4c4f5050 https://gist.github.com/danaskallman/1a40f03900a631c6389b It works nicely, wraps around the content area so that no HTML has to go in that area if not wanted to do so. Works best with Single column ...


3

Tim - If the timezone for the event is always the one used by your organization (for example, if you're located in New York, it's always ET), you could modify the Smarty template for event receipts to include the time zone in the date formatting. One example: {$event.event_start_date|crmDate} could become {$event.event_start_date|date_format:"%A, %B %e, ...


3

Registering people manually like in your comment will utilize the "Events - Registration Confirmation and Receipt (off-line)" template. If people self register online, it will use the "Events - Registration Confirmation and Receipt (on-line)" template. For reference, the templates are listed and available to edit from this screen: Administer > ...


3

This was posted a while ago, but I thought I should post the solution I finally found to the problem (which still exists in my version 4.7.29 install) The solution to this problem was an API call. While the value of $participant_status_id shows the value PRIOR to update, with this Smarty code added somewhere near the top of the template: {crmAPI var='...


3

Possibly I don't follow the question, but using CiviMail you can avoid the need for using Headers or Footers by ensuring that you include all the required tokens in the template itself. You can also 'edit' the existing default Header and Footer and set them to not be default, hence when you then use your template in CiviMail, no header or footer will be ...


3

Two options! Use the text in the Event Config -> Online Registration -> Confirmation Email -> this is Event specific and this text/note will be pasted ahead of the receipt Email - so ahead of what is generated by the message template. Or - if you want to go into more detail: You can get into the message-template and add some if logic - that would ...


3

What worked for me with google-fonts is the following: After the tag add the include path generated from google-fonts, in this example Modak and Open Sans. @import url('https://fonts.googleapis.com/css?family=Modak|Open+Sans'); Then in the @supports block, in the face part add the fonts separated by '|', to be included in the blocks: face { label: ...


3

The problem is that the space in the if-statement is   rather than a normal space. For this reason, it's worth writing your smarty statements while viewing the Source code in the template editor.


3

I puzzled over this problem after a 4.7.28 upgrade for hours before reading this post. Turning off and on Ckeditor worked for me, which gave me another idea. Since this happened to me with two sites, I tried clearing all caches on the second site and that did the trick. I suspect changing the ckeditor setting flushes a cache, and flushing the cache is the ...


3

I think there is no approach for this on CiviCRM beyond smarty approach. We workaround this by splitting receivers groups by their language preferences and sending their separate mails from templates builded in different languages. This approach its fine for us. See this feature request on Mosaico project with the aim of facilitating work in this direction. ...


3

Look in your civicrm.settings.php (in wp-content/uploads/civicrm). There's a line that says: define( 'CIVICRM_MAIL_SMARTY', 0 ); Change it to define( 'CIVICRM_MAIL_SMARTY', 1 ); See https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#smarty


3

Jaap's comment is correct. It's unfortunately not possible to use a WYSIWYG editor on system templates because they're not (just) HTML, but contain Smarty code as well. Not only would Smarty break CKEditor, but CKEditor would break the Smarty code. This unfortunately makes editing system templates difficult to do. However, one trick that makes it easier ...


2

I tried @Eli Lisseck's suggestion and it worked. You can have a different receipt message per page by using this logic {if $contributionPageId == "yourPageId"}


Only top voted, non community-wiki answers of a minimum length are eligible