Merge remote-tracking branch 'upstream/4.5' into 4.5-master-2015-01-05-23-28-33
[civicrm-core.git] / xml / templates / message_templates / event_offline_receipt_text.tpl
1 {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
2 {$event.confirm_email_text}
3 {/if}
4
5 {if $isOnWaitlist}
6 ==========================================================={if $pricesetFieldsCount }===================={/if}
7
8 {ts}You have been added to the WAIT LIST for this event.{/ts}
9
10 {if $isPrimary}
11 {ts}If space becomes available you will receive an email with
12 a link to a web page where you can complete your registration.{/ts}
13
14 {/if}
15 ==========================================================={if $pricesetFieldsCount }===================={/if}
16
17 {elseif $isRequireApproval}
18 ==========================================================={if $pricesetFieldsCount }===================={/if}
19
20 {ts}Your registration has been submitted.{/ts}
21
22 {if $isPrimary}
23 {ts}Once your registration has been reviewed, you will receive
24 an email with a link to a web page where you can complete the
25 registration process.{/ts}
26
27 {/if}
28 ==========================================================={if $pricesetFieldsCount }===================={/if}
29
30 {elseif $is_pay_later}
31
32 ==========================================================={if $pricesetFieldsCount }===================={/if}
33
34 {$pay_later_receipt}
35 ==========================================================={if $pricesetFieldsCount }===================={/if}
36
37 {else}
38
39 {ts}Please print this confirmation for your records.{/ts}
40 {/if}
41
42
43 ==========================================================={if $pricesetFieldsCount }===================={/if}
44
45 {ts}Event Information and Location{/ts}
46
47 ==========================================================={if $pricesetFieldsCount }===================={/if}
48
49 {$event.event_title}
50 {$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}
51
52 {if $event.participant_role neq 'Attendee' and $defaultRole}
53 {ts}Participant Role{/ts}: {$event.participant_role}
54 {/if}
55
56 {if $isShowLocation}
57 {if $location.address.1.name}
58
59 {$location.address.1.name}
60 {/if}
61 {if $location.address.1.street_address}{$location.address.1.street_address}
62 {/if}
63 {if $location.address.1.supplemental_address_1}{$location.address.1.supplemental_address_1}
64 {/if}
65 {if $location.address.1.supplemental_address_2}{$location.address.1.supplemental_address_2}
66 {/if}
67 {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}
68 {/if}
69
70 {/if}{*End of isShowLocation condition*}
71
72 {if $location.phone.1.phone || $location.email.1.email}
73
74 {ts}Event Contacts:{/ts}
75 {foreach from=$location.phone item=phone}
76 {if $phone.phone}
77
78 {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}
79 {/foreach}
80 {foreach from=$location.email item=eventEmail}
81 {if $eventEmail.email}
82
83 {ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
84 {/if}
85
86 {if $event.is_public}
87 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
88 {ts}Download iCalendar File:{/ts} {$icalFeed}
89 {/if}
90
91 {if $email}
92
93 ==========================================================={if $pricesetFieldsCount }===================={/if}
94
95 {ts}Registered Email{/ts}
96
97 ==========================================================={if $pricesetFieldsCount }===================={/if}
98
99 {$email}
100 {/if}
101 {if $event.is_monetary} {* This section for Paid events only.*}
102
103 ==========================================================={if $pricesetFieldsCount }===================={/if}
104
105 {$event.fee_label}
106 ==========================================================={if $pricesetFieldsCount }===================={/if}
107
108 {if $lineItem}{foreach from=$lineItem item=value key=priceset}
109
110 {if $value neq 'skip'}
111 {if $isPrimary}
112 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
113 {ts 1=$priceset+1}Participant %1{/ts}
114 {/if}
115 {/if}
116 ---------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
117
118 {capture assign=ts_item}{ts}Item{/ts}{/capture}
119 {capture assign=ts_qty}{ts}Qty{/ts}{/capture}
120 {capture assign=ts_each}{ts}Each{/ts}{/capture}
121 {if $dataArray}
122 {capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
123 {capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
124 {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
125 {/if}
126 {capture assign=ts_total}{ts}Total{/ts}{/capture}
127 {capture assign=ts_participant_total}{if $pricesetFieldsCount }{ts}Total Participants{/ts}{/if}{/capture}
128 {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $dataArray} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {$ts_participant_total|string_format:"%10s"}
129 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
130
131 {foreach from=$value item=line}
132 {if $pricesetFieldsCount }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
133 {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|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|string_format:"%10s"} {$ts_participant_count|string_format:"%10s"}
134 {/foreach}
135 {/if}
136 {/foreach}
137
138 {if $dataArray}
139 {ts}Amount before Tax{/ts}: {$totalAmount-$totalTaxAmount|crmMoney:$currency}
140
141 {foreach from=$dataArray item=value key=priceset}
142 {if $priceset || $priceset == 0}
143 {$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
144 {else}
145 {ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
146 {/if}
147 {/foreach}
148 {/if}
149 {/if}
150
151 {if $amount && !$lineItem}
152 {foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}
153 {/foreach}
154 {/if}
155
156 {if $totalTaxAmount}
157 {ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
158 {/if}
159 {if $isPrimary}
160
161 {if $balanceAmount}{ts}Total Paid{/ts}{else}{ts}Total Amount{/ts}{/if}: {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
162
163 {if $balanceAmount}
164 {ts}Balance{/ts}: {$balanceAmount|crmMoney}
165 {/if}
166
167 {if $pricesetFieldsCount }
168 {assign var="count" value= 0}
169 {foreach from=$lineItem item=pcount}
170 {assign var="lineItemCount" value=0}
171 {if $pcount neq 'skip'}
172 {foreach from=$pcount item=p_count}
173 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
174 {/foreach}
175 {if $lineItemCount < 1 }
176 {assign var="lineItemCount" value=1}
177 {/if}
178 {assign var="count" value=$count+$lineItemCount}
179 {/if}
180 {/foreach}
181
182 {ts}Total Participants{/ts}: {$count}
183 {/if}
184
185 {if $is_pay_later }
186
187 ==========================================================={if $pricesetFieldsCount }===================={/if}
188
189 {$pay_later_receipt}
190 ==========================================================={if $pricesetFieldsCount }===================={/if}
191
192 {/if}
193
194 {if $register_date}
195 {ts}Registration Date{/ts}: {$register_date|crmDate}
196 {/if}
197 {if $receive_date}
198 {ts}Transaction Date{/ts}: {$receive_date|crmDate}
199 {/if}
200 {if $contributionTypeName}
201 {ts}Financial Type{/ts}: {$contributionTypeName}
202 {/if}
203 {if $trxn_id}
204 {ts}Transaction #{/ts}: {$trxn_id}
205 {/if}
206 {if $paidBy}
207 {ts}Paid By{/ts}: {$paidBy}
208 {/if}
209 {if $checkNumber}
210 {ts}Check Number{/ts}: {$checkNumber}
211 {/if}
212 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
213
214 ==========================================================={if $pricesetFieldsCount }===================={/if}
215
216 {ts}Billing Name and Address{/ts}
217
218 ==========================================================={if $pricesetFieldsCount }===================={/if}
219
220 {$billingName}
221 {$address}
222 {/if}
223
224 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
225 ===========================================================
226 {ts}Credit Card Information{/ts}
227
228 ==========================================================={if $pricesetFieldsCount }===================={/if}
229
230 {$credit_card_type}
231 {$credit_card_number}
232 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
233 {/if}
234 {/if}
235 {/if} {* End of conditional section for Paid events *}
236
237 {if $customPre}
238 ==========================================================={if $pricesetFieldsCount }===================={/if}
239
240 {$customPre_grouptitle}
241 ==========================================================={if $pricesetFieldsCount }===================={/if}
242
243 {foreach from=$customPre item=value key=customName}
244 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
245 {$customName}: {$value}
246 {/if}
247 {/foreach}
248 {/if}
249
250 {if $customPost}
251 ==========================================================={if $pricesetFieldsCount }===================={/if}
252
253 {$customPost_grouptitle}
254 ==========================================================={if $pricesetFieldsCount }===================={/if}
255
256 {foreach from=$customPost item=value key=customName}
257 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
258 {$customName}: {$value}
259 {/if}
260 {/foreach}
261 {/if}
262 {if $customProfile}
263
264 {foreach from=$customProfile item=value key=customName}
265 ==========================================================={if $pricesetFieldsCount }===================={/if}
266
267 {ts 1=$customName+1}Participant Information - Participant %1{/ts}
268
269 ==========================================================={if $pricesetFieldsCount }===================={/if}
270
271 {foreach from=$value item=val key=field}
272 {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost' }
273 {if $field eq 'additionalCustomPre' }
274 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
275
276 {$additionalCustomPre_grouptitle}
277 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
278
279 {else}
280 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
281
282 {$additionalCustomPost_grouptitle}
283 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
284
285 {/if}
286 {foreach from=$val item=v key=f}
287 {$f}: {$v}
288 {/foreach}
289 {/if}
290 {/foreach}
291 {/foreach}
292 {/if}
293 {if $customGroup}
294 {foreach from=$customGroup item=value key=customName}
295 =========================================================={if $pricesetFieldsCount }===================={/if}
296
297 {$customName}
298 =========================================================={if $pricesetFieldsCount }===================={/if}
299
300 {foreach from=$value item=v key=n}
301 {$n}: {$v}
302 {/foreach}
303 {/foreach}
304 {/if}
305
306