7 votes
Accepted

Message templates token replacement: is it {if membership_end_date} or {if {membership_end_date}}?

It should be {if '{membership.end_date}'} and {membership.end_date|crmDate}
Pradeep Nayak's user avatar
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,253
5 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
  • 501
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
  • 22.9k
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

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

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

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
  • 877
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,224
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.3k
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
Accepted

Smarty code not working

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 ...
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,246
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
  • 22.9k
3 votes
Accepted

How to email a link to a confidential document in Civi

I would be building it as a View and setting the Roles for access to the View from there.
petednz - fuzion's user avatar
  • 28.3k
3 votes
Accepted

Thank-you letter incorrect contribution currency

Well - there's a bug worth reporting here, but I understand your priority is getting these letters out. This should do the trick: Go to Administer menu » Localizations » Languages, Currency, ...
Jon G - Megaphone Tech's user avatar
3 votes
Accepted

Receipts for FL donors

The state token is a token and not a smarty variable, so it has to just be on its own, and you can't use it in the middle of a smarty if statement. You have to capture it first into a smarty variable: ...
Demerit's user avatar
  • 22.9k
3 votes
Accepted

Can't get Pretty Workflow Messages to work

Group subscription messages are not part of 'System Workflow Messages'. Hence it is not supported for them. Here is the list of default CiviCRM 'System Workflow Messages'. Hope this helps!
Kurund Jalmi's user avatar
3 votes
Accepted

Cannot upload images using CKEditor on message template after 5.45 upgrade

Revert the session id fix until core team has a fix
Pradeep Nayak's user avatar
2 votes

Attachments in Message Templates

I just stumbled on an extension for this: https://civicrm.org/extensions/e-mail-template-attachments Although, I'm having a little trouble with it maybe you'll have more luck.
RayWright's user avatar
  • 2,488

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