Merge branch 'CRM-20460' into CRM-20460-4.7
[civicrm-core.git] / xml / templates / message_templates / contribution_online_receipt_text.tpl
1 {if $receipt_text}
2 {$receipt_text}
3 {/if}
4 {if $is_pay_later}
5
6 ===========================================================
7 {$pay_later_receipt}
8 ===========================================================
9 {else}
10
11 {ts}Please print this receipt for your records.{/ts}
12 {/if}
13
14 {if $amount}
15 ===========================================================
16 {ts}Contribution Information{/ts}
17
18 ===========================================================
19 {if $lineItem and $priceSetID and !$is_quick_config}
20 {foreach from=$lineItem item=value key=priceset}
21 ---------------------------------------------------------
22 {capture assign=ts_item}{ts}Item{/ts}{/capture}
23 {capture assign=ts_qty}{ts}Qty{/ts}{/capture}
24 {capture assign=ts_each}{ts}Each{/ts}{/capture}
25 {if $dataArray}
26 {capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
27 {capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
28 {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
29 {/if}
30 {capture assign=ts_total}{ts}Total{/ts}{/capture}
31 {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $dataArray} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"}
32 ----------------------------------------------------------
33 {foreach from=$value item=line}
34 {capture assign=ts_item}{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {if $dataArray}{$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate != "" || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:"%10s"}
35 {/foreach}
36 {/foreach}
37
38 {if $dataArray}
39 {ts}Amount before Tax{/ts}: {$amount-$totalTaxAmount|crmMoney:$currency}
40
41 {foreach from=$dataArray item=value key=priceset}
42 {if $priceset || $priceset == 0}
43 {$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
44 {else}
45 {ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
46 {/if}
47 {/foreach}
48 {/if}
49
50 {if $totalTaxAmount}
51 {ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
52 {/if}
53
54 {ts}Total Amount{/ts}: {$amount|crmMoney:$currency}
55 {else}
56 {ts}Amount{/ts}: {$amount|crmMoney:$currency} {if $amount_level } - {$amount_level} {/if}
57 {/if}
58 {/if}
59 {if $receive_date}
60
61 {ts}Date{/ts}: {$receive_date|crmDate}
62 {/if}
63 {if $is_monetary and $trxn_id}
64 {ts}Transaction #{/ts}: {$trxn_id}
65 {/if}
66
67 {if $is_recur and ($contributeMode eq 'notify' or $contributeMode eq 'directIPN')}
68 {ts}This is a recurring contribution. You can cancel future contributions at:{/ts}
69
70 {$cancelSubscriptionUrl}
71
72 {if $updateSubscriptionBillingUrl}
73 {ts}You can update billing details for this recurring contribution at:{/ts}
74
75 {$updateSubscriptionBillingUrl}
76
77 {/if}
78 {ts}You can update recurring contribution amount or change the number of installments for this recurring contribution at:{/ts}
79
80 {$updateSubscriptionUrl}
81
82 {/if}
83
84 {if $honor_block_is_active}
85 ===========================================================
86 {$soft_credit_type}
87 ===========================================================
88 {foreach from=$honoreeProfile item=value key=label}
89 {$label}: {$value}
90 {/foreach}
91 {elseif $softCreditTypes and $softCredits}
92 {foreach from=$softCreditTypes item=softCreditType key=n}
93 ===========================================================
94 {$softCreditType}
95 ===========================================================
96 {foreach from=$softCredits.$n item=value key=label}
97 {$label}: {$value}
98 {/foreach}
99 {/foreach}
100 {/if}
101 {if $pcpBlock}
102 ===========================================================
103 {ts}Personal Campaign Page{/ts}
104
105 ===========================================================
106 {ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
107
108 {if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}
109
110 {if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}
111
112 {/if}
113 {if $onBehalfProfile}
114 ===========================================================
115 {ts}On Behalf Of{/ts}
116
117 ===========================================================
118 {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
119 {$onBehalfName}: {$onBehalfValue}
120 {/foreach}
121 {/if}
122
123 {if !( $contributeMode eq 'notify' OR $contributeMode eq 'directIPN' ) and $is_monetary}
124 {if $is_pay_later && !$isBillingAddressRequiredForPayLater}
125 ===========================================================
126 {ts}Registered Email{/ts}
127
128 ===========================================================
129 {$email}
130 {elseif $amount GT 0}
131 ===========================================================
132 {ts}Billing Name and Address{/ts}
133
134 ===========================================================
135 {$billingName}
136 {$address}
137
138 {$email}
139 {/if} {* End ! is_pay_later condition. *}
140 {/if}
141 {if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
142
143 ===========================================================
144 {ts}Credit Card Information{/ts}
145
146 ===========================================================
147 {$credit_card_type}
148 {$credit_card_number}
149 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
150 {/if}
151
152 {if $selectPremium }
153 ===========================================================
154 {ts}Premium Information{/ts}
155
156 ===========================================================
157 {$product_name}
158 {if $option}
159 {ts}Option{/ts}: {$option}
160 {/if}
161 {if $sku}
162 {ts}SKU{/ts}: {$sku}
163 {/if}
164 {if $start_date}
165 {ts}Start Date{/ts}: {$start_date|crmDate}
166 {/if}
167 {if $end_date}
168 {ts}End Date{/ts}: {$end_date|crmDate}
169 {/if}
170 {if $contact_email OR $contact_phone}
171
172 {ts}For information about this premium, contact:{/ts}
173
174 {if $contact_email}
175 {$contact_email}
176 {/if}
177 {if $contact_phone}
178 {$contact_phone}
179 {/if}
180 {/if}
181 {if $is_deductible AND $price}
182
183 {ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}
184 {/if}
185
186 {if $customPre}
187 ===========================================================
188 {$customPre_grouptitle}
189
190 ===========================================================
191 {foreach from=$customPre item=customValue key=customName}
192 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
193 {$customName}: {$customValue}
194 {/if}
195 {/foreach}
196 {/if}
197
198
199 {if $customPost}
200 ===========================================================
201 {$customPost_grouptitle}
202
203 ===========================================================
204 {foreach from=$customPost item=customValue key=customName}
205 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
206 {$customName}: {$customValue}
207 {/if}
208 {/foreach}
209 {/if}