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