0

We've upgraded civicrm multiple times the last few years. At a certain point, the receipt templates broke. It stopped showing credit card information and membership start/end date (for membership receipts) became blank.

I've just reverted 'back' to the default templates, assuming that default is the same as the most recent version of civicrm (so, not the 4.5 default we started with, but the 4.7 default we are at right now). But these fields are still broken.

So perhaps these are not the most recent templates. Are there more recent templates I can download somewhere ?

Particularly, I see

<td {$valueStyle}>
{$mem_start_date}
</td>

Shouldn't that be

<td {$valueStyle}>
{$mem_start_date|crmDate}
</td>

Or even

<td {$valueStyle}>
{$mem_start_date|truncate:10:''|crmDate}
</td>

and

 {$credit_card_type}<br />
 {$credit_card_number}

prints nothing but blanks, as does

 {$credit_card_exp_date|truncate:7:''|crmDate}
0

You should be able to find the current template files in the repository (https://github.com/civicrm/civicrm-core). It's not clear whether you're on 5.x or in fact still on 4.7 but previous versions should be available as well for you to pull from.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.