Merge pull request #6262 from civicrm/revert-6186-CRM-16826
[civicrm-core.git] / xml / templates / message_templates / membership_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 $membership_assign && !$useForMember}
15 ===========================================================
16 {ts}Membership Information{/ts}
17
18 ===========================================================
19 {ts}Membership Type{/ts}: {$membership_name}
20 {if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}
21 {/if}
22 {if $mem_end_date}{ts}Membership End Date{/ts}: {$mem_end_date|crmDate}
23 {/if}
24
25 {/if}
26 {if $amount}
27 ===========================================================
28 {ts}Membership Fee{/ts}
29
30 ===========================================================
31 {if !$useForMember && $membership_amount && $is_quick_config}
32 {ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}
33 {if $amount}
34 {if ! $is_separate_payment }
35 {ts}Contribution Amount{/ts}: {$amount|crmMoney}
36 {else}
37 {ts}Additional Contribution{/ts}: {$amount|crmMoney}
38 {/if}
39 {/if}
40 -------------------------------------------
41 {ts}Total{/ts}: {$amount+$membership_amount|crmMoney}
42 {elseif !$useForMember && $lineItem and $priceSetID & !$is_quick_config}
43 {foreach from=$lineItem item=value key=priceset}
44 ---------------------------------------------------------
45 {capture assign=ts_item}{ts}Item{/ts}{/capture}
46 {capture assign=ts_qty}{ts}Qty{/ts}{/capture}
47 {capture assign=ts_each}{ts}Each{/ts}{/capture}
48 {capture assign=ts_total}{ts}Total{/ts}{/capture}
49 {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {$ts_total|string_format:"%10s"}
50 ----------------------------------------------------------
51 {foreach from=$value item=line}
52 {$line.description|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney|string_format:"%10s"} {$line.line_total|crmMoney|string_format:"%10s"}
53 {/foreach}
54 {/foreach}
55
56 {ts}Total Amount{/ts}: {$amount|crmMoney}
57 {else}
58 {if $useForMember && $lineItem && !$is_quick_config}
59 {foreach from=$lineItem item=value key=priceset}
60 {capture assign=ts_item}{ts}Item{/ts}{/capture}
61 {capture assign=ts_total}{ts}Fee{/ts}{/capture}
62 {if $dataArray}
63 {capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
64 {capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
65 {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
66 {capture assign=ts_total}{ts}Total{/ts}{/capture}
67 {/if}
68 {capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}
69 {capture assign=ts_end_date}{ts}Membership End Date{/ts}{/capture}
70 {$ts_item|string_format:"%-30s"} {$ts_total|string_format:"%10s"} {if $dataArray} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {$ts_total|string_format:"%10s"} {/if} {$ts_start_date|string_format:"%20s"} {$ts_end_date|string_format:"%20s"}
71 --------------------------------------------------------------------------------------------------
72
73 {foreach from=$value item=line}
74 {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.line_total|crmMoney|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} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {/if} {$line.start_date|string_format:"%20s"} {$line.end_date|string_format:"%20s"}
75 {/foreach}
76 {/foreach}
77
78 {if $dataArray}
79 {ts}Amount before Tax{/ts}: {$amount-$totalTaxAmount|crmMoney:$currency}
80
81 {foreach from=$dataArray item=value key=priceset}
82 {if $priceset || $priceset == 0}
83 {$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
84 {else}
85 {ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
86 {/if}
87 {/foreach}
88 {/if}
89 --------------------------------------------------------------------------------------------------
90 {/if}
91
92 {if $totalTaxAmount}
93 {ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
94 {/if}
95
96 {ts}Amount{/ts}: {$amount|crmMoney} {if $amount_level } - {$amount_level} {/if}
97 {/if}
98 {elseif $membership_amount}
99 ===========================================================
100 {ts}Membership Fee{/ts}
101
102 ===========================================================
103 {ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}
104 {/if}
105
106 {if $receive_date}
107
108 {ts}Date{/ts}: {$receive_date|crmDate}
109 {/if}
110 {if $is_monetary and $trxn_id}
111 {ts}Transaction #{/ts}: {$trxn_id}
112
113 {/if}
114 {if $membership_trx_id}
115 {ts}Membership Transaction #{/ts}: {$membership_trx_id}
116
117 {/if}
118 {if $is_recur}
119 {if $contributeMode eq 'notify' or $contributeMode eq 'directIPN'}
120 {ts 1=$cancelSubscriptionUrl}This membership will be renewed automatically. You can cancel the auto-renewal option by visiting this web page: %1.{/ts}
121
122 {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href="%1">visiting this web page</a>.{/ts}
123 {/if}
124 {/if}
125
126 {if $honor_block_is_active }
127 ===========================================================
128 {$soft_credit_type}
129 ===========================================================
130 {foreach from=$honoreeProfile item=value key=label}
131 {$label}: {$value}
132 {/foreach}
133
134 {/if}
135 {if $pcpBlock}
136 ===========================================================
137 {ts}Personal Campaign Page{/ts}
138
139 ===========================================================
140 {ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
141
142 {if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}
143
144 {if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}
145
146 {/if}
147 {if $onBehalfProfile}
148 ===========================================================
149 {ts}On Behalf Of{/ts}
150
151 ===========================================================
152 {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
153 {$onBehalfName}: {$onBehalfValue}
154 {/foreach}
155 {/if}
156
157 {if !( $contributeMode eq 'notify' OR $contributeMode eq 'directIPN' ) and $is_monetary}
158 {if $is_pay_later}
159 ===========================================================
160 {ts}Registered Email{/ts}
161
162 ===========================================================
163 {$email}
164 {elseif $amount GT 0 OR $membership_amount GT 0 }
165 ===========================================================
166 {ts}Billing Name and Address{/ts}
167
168 ===========================================================
169 {$billingName}
170 {$address}
171
172 {$email}
173 {/if} {* End ! is_pay_later condition. *}
174 {/if}
175 {if $contributeMode eq 'direct' AND !$is_pay_later AND ( $amount GT 0 OR $membership_amount GT 0 ) }
176
177 ===========================================================
178 {ts}Credit Card Information{/ts}
179
180 ===========================================================
181 {$credit_card_type}
182 {$credit_card_number}
183 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
184 {/if}
185
186 {if $selectPremium }
187 ===========================================================
188 {ts}Premium Information{/ts}
189
190 ===========================================================
191 {$product_name}
192 {if $option}
193 {ts}Option{/ts}: {$option}
194 {/if}
195 {if $sku}
196 {ts}SKU{/ts}: {$sku}
197 {/if}
198 {if $start_date}
199 {ts}Start Date{/ts}: {$start_date|crmDate}
200 {/if}
201 {if $end_date}
202 {ts}End Date{/ts}: {$end_date|crmDate}
203 {/if}
204 {if $contact_email OR $contact_phone}
205
206 {ts}For information about this premium, contact:{/ts}
207
208 {if $contact_email}
209 {$contact_email}
210 {/if}
211 {if $contact_phone}
212 {$contact_phone}
213 {/if}
214 {/if}
215 {if $is_deductible AND $price}
216
217 {ts 1=$price|crmMoney}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}
218 {/if}
219
220 {if $customPre}
221 ===========================================================
222 {$customPre_grouptitle}
223
224 ===========================================================
225 {foreach from=$customPre item=customValue key=customName}
226 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
227 {$customName}: {$customValue}
228 {/if}
229 {/foreach}
230 {/if}
231
232
233 {if $customPost}
234 ===========================================================
235 {$customPost_grouptitle}
236
237 ===========================================================
238 {foreach from=$customPost item=customValue key=customName}
239 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
240 {$customName}: {$customValue}
241 {/if}
242 {/foreach}
243 {/if}