Merge branch 'CRM-13965' of git://github.com/pratik-joshi/civicrm-core into CRM-13965
[civicrm-core.git] / xml / templates / message_templates / payment_or_refund_notification_text.tpl
1 Dear {$contactDisplayName}
2 {if $paymentConfig.confirm_email_text}
3 {$paymentConfig.confirm_email_text}
4 {elseif $isRefund}
5 {ts}A refund has been issued based on changes in your registration selections.{/ts}
6 {else}
7 {ts}A payment has been received.{/ts}
8 {/if}
9
10 {ts}Please print this confirmation for your records.{/ts}
11
12 {if $isRefund}
13 ===============================================================================
14
15 {ts}Refund Details{/ts}
16
17 ===============================================================================
18 {ts}Total Fees{/ts}: {$totalAmount|crmMoney}
19 {ts}You Paid{/ts}: {$totalPaid|crmMoney}
20 ------------------------------------------------------------------------------------
21 {ts}Refund Amount{/ts}: {$refundAmount|crmMoney}
22
23 {else}
24 ===============================================================================
25
26 {ts}Payment Details{/ts}
27
28 ===============================================================================
29 {ts}Total Fees{/ts}: {$totalAmount|crmMoney}
30 {ts}This Payment Amount{/ts}: {$paymentAmount|crmMoney}
31 ------------------------------------------------------------------------------------
32 {ts}Balance Owed{/ts}: {$amountOwed|crmMoney} {* This will be zero after final payment. *}
33 {if $paymentsComplete}
34
35 {ts}Thank-you. This completes your payment for {/ts}{if $component eq 'event'}{$event.event_title}{/if}.
36 {/if}
37 {/if}
38 {if $receive_date}
39 {ts}Transaction Date{/ts}: {$receive_date|crmDate}
40 {/if}
41 {if $trxn_id}
42 {ts}Transaction #{/ts}: {$trxn_id}
43 {/if}
44 {if $paidBy}
45 {ts}Paid By{/ts}: {$paidBy}
46 {/if}
47 {if $checkNumber}
48 {ts}Check Number{/ts}: {$checkNumber}
49 {/if}
50 {if $contributeMode ne 'notify' and !$isAmountzero}
51
52 ===============================================================================
53
54 {ts}Billing Name and Address{/ts}
55
56 ===============================================================================
57
58 {$billingName}
59 {$address}
60 {/if}
61
62 {if $contributeMode eq 'direct' and !$isAmountzero}
63 ===========================================================
64 {ts}Credit Card Information{/ts}
65
66 ===============================================================================
67
68 {$credit_card_type}
69 {$credit_card_number}
70 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
71 {/if}
72 {if $component eq 'event'}
73 ===============================================================================
74
75 {ts}Event Information and Location{/ts}
76
77 ===============================================================================
78
79 {$event.event_title}
80 {$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}
81
82 {if $event.participant_role neq 'Attendee' and $defaultRole}
83 {ts}Participant Role{/ts}: {$event.participant_role}
84 {/if}
85
86 {if $isShowLocation}
87 {if $location.address.1.name}
88
89 {$location.address.1.name}
90 {/if}
91 {if $location.address.1.street_address}{$location.address.1.street_address}
92 {/if}
93 {if $location.address.1.supplemental_address_1}{$location.address.1.supplemental_address_1}
94 {/if}
95 {if $location.address.1.supplemental_address_2}{$location.address.1.supplemental_address_2}
96 {/if}
97 {if $location.address.1.city}{$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}
98 {/if}
99
100 {/if}{*End of isShowLocation condition*}
101
102 {if $location.phone.1.phone || $location.email.1.email}
103
104 {ts}Event Contacts:{/ts}
105 {foreach from=$location.phone item=phone}
106 {if $phone.phone}
107
108 {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}
109 {/foreach}
110 {foreach from=$location.email item=eventEmail}
111 {if $eventEmail.email}
112
113 {ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
114 {/if}
115 {/if}