Merge remote-tracking branch 'upstream/4.5' into 4.5-4.6-2015-04-06-18-05-56
[civicrm-core.git] / xml / templates / message_templates / event_online_receipt_text.tpl
CommitLineData
6a488035
TO
1Dear {contact.display_name},
2
3{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
4{$event.confirm_email_text}
5
6{else}
09163e8a 7Thank you for your participation. This letter is a confirmation that your registration has been received and your status has been updated to {if $participant_status}{$participant_status}{else}{if $isOnWaitlist}waitlisted{else}registered{/if}{/if}.
6a488035
TO
8
9{/if}
10
11{if $isOnWaitlist}
12==========================================================={if $pricesetFieldsCount }===================={/if}
13
14{ts}You have been added to the WAIT LIST for this event.{/ts}
15
16{if $isPrimary}
0865a4ed 17{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}
6a488035
TO
18{/if}
19==========================================================={if $pricesetFieldsCount }===================={/if}
20
21{elseif $isRequireApproval}
22==========================================================={if $pricesetFieldsCount }===================={/if}
23
24{ts}Your registration has been submitted.{/ts}
25
26{if $isPrimary}
0865a4ed 27{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}
6a488035
TO
28
29{/if}
30==========================================================={if $pricesetFieldsCount }===================={/if}
31
7d92d486 32{elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
6a488035
TO
33
34==========================================================={if $pricesetFieldsCount }===================={/if}
35
36{$pay_later_receipt}
37==========================================================={if $pricesetFieldsCount }===================={/if}
38
39{else}
40
41{ts}Please print this confirmation for your records.{/ts}
42{/if}
43
44
45==========================================================={if $pricesetFieldsCount }===================={/if}
46
47{ts}Event Information and Location{/ts}
48
49==========================================================={if $pricesetFieldsCount }===================={/if}
50
51{$event.event_title}
52{$event.event_start_date|date_format:"%A"} {$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|date_format:"%A"} {$event.event_end_date|crmDate}{/if}{/if}
53{if $conference_sessions}
54
55
56{ts}Your schedule:{/ts}
57{assign var='group_by_day' value='NA'}
58{foreach from=$conference_sessions item=session}
59{if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
60{assign var='group_by_day' value=$session.start_date}
61
62{$group_by_day|date_format:"%m/%d/%Y"}
63
64
65{/if}
66{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}
67{if $session.location} {$session.location}{/if}
68{/foreach}
69{/if}
70
71{if $event.participant_role neq 'Attendee' and $defaultRole}
72{ts}Participant Role{/ts}: {$event.participant_role}
73{/if}
74
75{if $isShowLocation}
76{if $location.address.1.name}
77
78{$location.address.1.name}
79{/if}
80{if $location.address.1.street_address}{$location.address.1.street_address}
81{/if}
82{if $location.address.1.supplemental_address_1}{$location.address.1.supplemental_address_1}
83{/if}
84{if $location.address.1.supplemental_address_2}{$location.address.1.supplemental_address_2}
85{/if}
86{if $location.address.1.city}{$location.address.1.city}, {$location.address.1.state_province} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}
87{/if}
88
89{/if}{*End of isShowLocation condition*}
90
91{if $location.phone.1.phone || $location.email.1.email}
92
93{ts}Event Contacts:{/ts}
94{foreach from=$location.phone item=phone}
95{if $phone.phone}
96
5d9ebb64 97{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}
6a488035
TO
98{/foreach}
99{foreach from=$location.email item=eventEmail}
100{if $eventEmail.email}
101
102{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
103{/if}
104
ebf2b57b 105{if $event.is_public}
6a488035
TO
106{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
107{ts}Download iCalendar File:{/ts} {$icalFeed}
4de4dbe9 108{/if}
6a488035
TO
109
110{if $payer.name}
111You were registered by: {$payer.name}
112{/if}
113{if $event.is_monetary} {* This section for Paid events only.*}
114
115==========================================================={if $pricesetFieldsCount }===================={/if}
116
117{$event.fee_label}
118==========================================================={if $pricesetFieldsCount }===================={/if}
119
120{if $lineItem}{foreach from=$lineItem item=value key=priceset}
121
122{if $value neq 'skip'}
123{if $isPrimary}
124{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
125{ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
126
127{/if}
128{/if}
129-----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
130
131{capture assign=ts_item}{ts}Item{/ts}{/capture}
132{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
133{capture assign=ts_each}{ts}Each{/ts}{/capture}
7cf82823 134{if $dataArray}
79d001a2
PB
135{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
136{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
137{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
138{/if}
6a488035
TO
139{capture assign=ts_total}{ts}Total{/ts}{/capture}
140{if $pricesetFieldsCount }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}
7cf82823 141{$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"}
6a488035
TO
142-----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
143
144{foreach from=$value item=line}
145{if $pricesetFieldsCount }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
7cf82823 146{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"}{$ts_participant_count|string_format:"%10s"}
79d001a2
PB
147{/foreach}
148{/if}
6a488035 149{/foreach}
79d001a2 150
7cf82823 151{if $dataArray}
79d001a2
PB
152{ts}Amount before Tax{/ts}: {$totalAmount-$totalTaxAmount|crmMoney:$currency}
153
154{foreach from=$dataArray item=value key=priceset}
7cf82823 155{if $priceset || $priceset == 0}
03b412ae 156{$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
7cf82823 157{else}
03b412ae 158{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
6a488035
TO
159{/if}
160{/foreach}
161{/if}
79d001a2
PB
162{/if}
163
6a488035
TO
164{if $amounts && !$lineItem}
165{foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label}
166{/foreach}
167{/if}
79d001a2
PB
168
169{if $totalTaxAmount}
170{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
171{/if}
6a488035
TO
172{if $isPrimary }
173
174{ts}Total Amount{/ts}: {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
175
176{if $pricesetFieldsCount }
177 {assign var="count" value= 0}
178 {foreach from=$lineItem item=pcount}
179 {assign var="lineItemCount" value=0}
180 {if $pcount neq 'skip'}
181 {foreach from=$pcount item=p_count}
182 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
183 {/foreach}
184 {if $lineItemCount < 1 }
185 {assign var="lineItemCount" value=1}
a235e13c 186 {/if}
6a488035
TO
187 {assign var="count" value=$count+$lineItemCount}
188 {/if}
189 {/foreach}
190
191{ts}Total Participants{/ts}: {$count}
192{/if}
a235e13c 193
6a488035
TO
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}
e45f6ab0 212{if $contributeMode ne 'notify' and !$isAmountzero and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and !$isOnWaitlist and !$isRequireApproval}
6a488035
TO
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==========================================================={if $pricesetFieldsCount }===================={/if}
226
227{ts}Credit Card Information{/ts}
228
229==========================================================={if $pricesetFieldsCount }===================={/if}
230
231{$credit_card_type}
232{$credit_card_number}
233{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
234{/if}
235{/if}
236{/if} {* End of conditional section for Paid events *}
237
238{if $customPre}
239{foreach from=$customPre item=customPr key=i}
240==========================================================={if $pricesetFieldsCount }===================={/if}
241
242{$customPre_grouptitle.$i}
243==========================================================={if $pricesetFieldsCount }===================={/if}
244
245{foreach from=$customPr item=customValue key=customName}
246{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
247 {$customName}: {$customValue}
248{/if}
249{/foreach}
250{/foreach}
251{/if}
252
253{if $customPost}
254{foreach from=$customPost item=customPos key=j}
255==========================================================={if $pricesetFieldsCount }===================={/if}
256
a235e13c 257{$customPost_grouptitle.$j}
6a488035
TO
258==========================================================={if $pricesetFieldsCount }===================={/if}
259
260{foreach from=$customPos item=customValue key=customName}
261{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
262 {$customName}: {$customValue}
263{/if}
264{/foreach}
265{/foreach}
266{/if}
267{if $customProfile}
268
269{foreach from=$customProfile.profile item=eachParticipant key=participantID}
270==========================================================={if $pricesetFieldsCount }===================={/if}
271
272{ts 1=$participantID+2}Participant Information - Participant %1{/ts}
273
274==========================================================={if $pricesetFieldsCount }===================={/if}
275
276{foreach from=$eachParticipant item=eachProfile key=pid}
277----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
278
279{$customProfile.title.$pid}
280----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
281
282{foreach from=$eachProfile item=val key=field}
283{foreach from=$val item=v key=f}
284{$field}: {$v}
285{/foreach}
286{/foreach}
287{/foreach}
288{/foreach}
289{/if}
290{if $customGroup}
291{foreach from=$customGroup item=value key=customName}
292=========================================================={if $pricesetFieldsCount }===================={/if}
293
294{$customName}
295=========================================================={if $pricesetFieldsCount }===================={/if}
296
297{foreach from=$value item=v key=n}
298{$n}: {$v}
299{/foreach}
300{/foreach}
301{/if}