Merge pull request #10379 from seanmadsen/CRM-20301
[civicrm-core.git] / xml / templates / message_templates / payment_or_refund_notification_text.tpl
1 Dear {$contactDisplayName}
2 {if $isRefund}
3 {ts}A refund has been issued based on changes in your registration selections.{/ts}
4 {else}
5 {ts}A payment has been received.{/ts}
6 {/if}
7
8 {ts}Please print this confirmation for your records.{/ts}
9
10 {if $isRefund}
11 ===============================================================================
12
13 {ts}Refund Details{/ts}
14
15 ===============================================================================
16 {ts}Total Fees{/ts}: {$totalAmount|crmMoney}
17 {ts}You Paid{/ts}: {$totalPaid|crmMoney}
18 ------------------------------------------------------------------------------------
19 {ts}Refund Amount{/ts}: {$refundAmount|crmMoney}
20
21 {else}
22 ===============================================================================
23
24 {ts}Payment Details{/ts}
25
26 ===============================================================================
27 {ts}Total Fees{/ts}: {$totalAmount|crmMoney}
28 {ts}This Payment Amount{/ts}: {$paymentAmount|crmMoney}
29 ------------------------------------------------------------------------------------
30 {ts}Balance Owed{/ts}: {$amountOwed|crmMoney} {* This will be zero after final payment. *}
31
32 {if $paymentsComplete}
33
34 {ts}Thank you for completing payment.{/ts}
35 {/if}
36 {/if}
37 {if $receive_date}
38 {ts}Transaction Date{/ts}: {$receive_date|crmDate}
39 {/if}
40 {if $trxn_id}
41 {ts}Transaction #{/ts}: {$trxn_id}
42 {/if}
43 {if $paidBy}
44 {ts}Paid By{/ts}: {$paidBy}
45 {/if}
46 {if $checkNumber}
47 {ts}Check Number{/ts}: {$checkNumber}
48 {/if}
49 {if $contributeMode eq 'direct' and !$isAmountzero}
50
51 ===============================================================================
52
53 {ts}Billing Name and Address{/ts}
54
55 ===============================================================================
56
57 {$billingName}
58 {$address}
59 {/if}
60
61 {if $contributeMode eq 'direct' and !$isAmountzero}
62 ===========================================================
63 {ts}Credit Card Information{/ts}
64
65 ===============================================================================
66
67 {$credit_card_type}
68 {$credit_card_number}
69 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
70 {/if}
71 {if $component eq 'event'}
72 ===============================================================================
73
74 {ts}Event Information and Location{/ts}
75
76 ===============================================================================
77
78 {$event.event_title}
79 {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
80
81 {if $event.participant_role}
82 {ts}Participant Role{/ts}: {$event.participant_role}
83 {/if}
84
85 {if $isShowLocation}
86 {$location.address.1.display|strip_tags:false}
87 {/if}{*End of isShowLocation condition*}
88
89 {if $location.phone.1.phone || $location.email.1.email}
90
91 {ts}Event Contacts:{/ts}
92 {foreach from=$location.phone item=phone}
93 {if $phone.phone}
94
95 {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
96 {/foreach}
97 {foreach from=$location.email item=eventEmail}
98 {if $eventEmail.email}
99
100 {ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
101 {/if}
102 {/if}