6 votes
Accepted

How can I see the available tokens for message templates?

use {debug output=html} To have a nice formatting in html email
empiguet's user avatar
  • 158
5 votes
Accepted

How can I add a banner image in the confirmation email for a particular event?

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 ...
Laryn's user avatar
  • 8,241
5 votes
Accepted

Send different event confirmation emails

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 ...
KarinG - Semper IT's user avatar
5 votes

Do any token extensions provide a token for "age" rather than just DOB?

I don't see any either, but the code to use in such an extension (as either a token or even a smarty modifier) seems pretty straightforward: https://github.com/civicrm/civicrm-core/blob/5.19.2/CRM/...
Demerit's user avatar
  • 21.7k
5 votes
Accepted

Do any token extensions provide a token for "age" rather than just DOB?

This sounded like a useful feature, so I added Age tokens to Eileen's CiviTokens extension, which seems to be the most widely used extension of its kind. Until a new release comes out, you'll have to ...
Noah Miller's user avatar
  • 1,057
4 votes
Accepted

Soft credit / honoree info in a token for Thank You letters?

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 ...
Laryn's user avatar
  • 8,241
4 votes
Accepted

Allow user to manage mail templates

"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 ...
Jon G - Megaphone Tech's user avatar
4 votes
Accepted

Conditional statements in 'manual' emails or thank you letters

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"-...
Catorghans's user avatar
  • 3,544
4 votes
Accepted

Editing Recurring Contributions without user login

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 ...
G H's user avatar
  • 1,146
4 votes

specific confirmation email for an event?

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 ...
KarinG - Semper IT's user avatar
4 votes
Accepted

Adding custom fonts in mosaico

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....
Phil_B's user avatar
  • 491
4 votes

How to check if a contact has an active membership in a smarty template?

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 ...
jitendra - fuzion's user avatar
4 votes

How to check if a contact has an active membership in a smarty template?

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 ...
Pradeep Nayak's user avatar
4 votes

How do I get the Name and Address on the Invoice to show up in a Window Envelope?

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: ...
KarinG - Semper IT's user avatar
4 votes
Accepted

CKEditor can only edit user driven message templates

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 ...
Jon G - Megaphone Tech's user avatar
4 votes

Is it possible to have a user that's only capability is to work with Mosaico. Specifically to Create/modify templates

Unfortunately there is no single Mosaico privilege. You would achieve what you want using a combination of CMS permissions and CiviCRM ACL. I would do the following: Create a special account for this ...
Marko's user avatar
  • 867
4 votes
Accepted

Using fields of referenced contacts in message

Welcome to SE CiviCRM, you can install Fuzion tokens extension. It provides lots of tokens for contacts like relationships, payments etc Details can be found here.
Pradeep Nayak's user avatar
4 votes

Outdated tokens in use in message template

Yes - those should be removed - they haven't been around for quite a while. We have quite a number of variables being deprecated in upcoming versions I'm afraid as we are replacing them with more ...
eileen's user avatar
  • 2,085
3 votes
Accepted

changing or removing the Headers and Footers from mailing templates

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 '...
petednz - fuzion's user avatar
  • 28.1k
3 votes
Accepted

$participant_status_id shows previous value in email template

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. ...
Jeff Wood's user avatar
  • 133
3 votes
Accepted

How to include price field data in a Contribution Thank You letter

It doesn't work because $lineItem is not set in the template, you'll have to loop thorough $contribtuions and use the API: {foreach from=$contributions item=contribution} {crmAPI var='result' entity='...
Andrei's user avatar
  • 2,321
3 votes

Can I customize the auto email for event registration?

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 - ...
Allen Hutchison's user avatar
3 votes

Event Time Zone

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 ...
Lesley Carter - BackOffice's user avatar
3 votes

Removing Carriage returns after a blank address field?

Try to use as below which does the job <div>{contact.addressee}</div> <div>{contact.street_address}</div> <div>{contact.supplemental_address_1}</div> <div>{...
Ramesh - ARTECH Consultancy's user avatar
3 votes
Accepted

Can tokenValue hooks be used in scheduled reminder emails?

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 = ...
davejenx's user avatar
  • 2,365
3 votes
Accepted

Smarty code not working

The problem is that the space in the if-statement is &nbsp; rather than a normal space. For this reason, it's worth writing your smarty statements while viewing the Source code in the template ...
Phil Morice Brubaker's user avatar
3 votes

Error message in CiviMail: "Mailing has not been saved, Content maybe out of date, please refresh the page and try again"

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, ...
Jamie's user avatar
  • 1,236
3 votes

Emails templates in the language of the receiver

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 ...
Francesc Bassas i Bullich's user avatar
3 votes

How to include token or variable for Invoice number under the message templates for Memberships - Receipt (on-line)

The tokens you can use in a message template are a bit random, just what the developer added to the template. In this case, the contribution id can be found with {$contributionID}. However, that is ...
Kainuk - CiviCooP's user avatar
3 votes
Accepted

{$contribution_aggregate} not outputting in message template

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....
Demerit's user avatar
  • 21.7k

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