remove newly introduced trailing spaces & tabs, new windows line-breaks also present...
[civicrm-core.git] / CRM / Upgrade / 4.3.5.msg_template / message_templates / event_online_receipt_text.tpl
CommitLineData
5d9ebb64
PJ
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}
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} for the following:
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}
17{ts}If space becomes available you will receive an email with
18a link to a web page where you can complete your registration.{/ts}
19{/if}
20==========================================================={if $pricesetFieldsCount }===================={/if}
21
22{elseif $isRequireApproval}
23==========================================================={if $pricesetFieldsCount }===================={/if}
24
25{ts}Your registration has been submitted.{/ts}
26
27{if $isPrimary}
28{ts}Once your registration has been reviewed, you will receive
29an email with a link to a web page where you can complete the
30registration process.{/ts}
31
32{/if}
33==========================================================={if $pricesetFieldsCount }===================={/if}
34
35{elseif $is_pay_later && !$isAmountzero}
36
37==========================================================={if $pricesetFieldsCount }===================={/if}
38
39{$pay_later_receipt}
40==========================================================={if $pricesetFieldsCount }===================={/if}
41
42{else}
43
44{ts}Please print this confirmation for your records.{/ts}
45{/if}
46
47
48==========================================================={if $pricesetFieldsCount }===================={/if}
49
50{ts}Event Information and Location{/ts}
51
52==========================================================={if $pricesetFieldsCount }===================={/if}
53
54{$event.event_title}
55{$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}
56{if $conference_sessions}
57
58
59{ts}Your schedule:{/ts}
60{assign var='group_by_day' value='NA'}
61{foreach from=$conference_sessions item=session}
62{if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
63{assign var='group_by_day' value=$session.start_date}
64
65{$group_by_day|date_format:"%m/%d/%Y"}
66
67
68{/if}
69{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}
70{if $session.location} {$session.location}{/if}
71{/foreach}
72{/if}
73
74{if $event.participant_role neq 'Attendee' and $defaultRole}
75{ts}Participant Role{/ts}: {$event.participant_role}
76{/if}
77
78{if $isShowLocation}
79{if $location.address.1.name}
80
81{$location.address.1.name}
82{/if}
83{if $location.address.1.street_address}{$location.address.1.street_address}
84{/if}
85{if $location.address.1.supplemental_address_1}{$location.address.1.supplemental_address_1}
86{/if}
87{if $location.address.1.supplemental_address_2}{$location.address.1.supplemental_address_2}
88{/if}
89{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}
90{/if}
91
92{/if}{*End of isShowLocation condition*}
93
94{if $location.phone.1.phone || $location.email.1.email}
95
96{ts}Event Contacts:{/ts}
97{foreach from=$location.phone item=phone}
98{if $phone.phone}
99
100{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}
101{/foreach}
102{foreach from=$location.email item=eventEmail}
103{if $eventEmail.email}
104
105{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
106{/if}
107
108{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
109{ts}Download iCalendar File:{/ts} {$icalFeed}
110
111{if $payer.name}
112You were registered by: {$payer.name}
113{/if}
114{if $event.is_monetary} {* This section for Paid events only.*}
115
116==========================================================={if $pricesetFieldsCount }===================={/if}
117
118{$event.fee_label}
119==========================================================={if $pricesetFieldsCount }===================={/if}
120
121{if $lineItem}{foreach from=$lineItem item=value key=priceset}
122
123{if $value neq 'skip'}
124{if $isPrimary}
125{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
126{ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
127
128{/if}
129{/if}
130-----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
131
132{capture assign=ts_item}{ts}Item{/ts}{/capture}
133{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
134{capture assign=ts_each}{ts}Each{/ts}{/capture}
135{capture assign=ts_total}{ts}Total{/ts}{/capture}
136{if $pricesetFieldsCount }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}
137{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {$ts_total|string_format:"%10s"} {$ts_participant_total|string_format:"%10s"}
138-----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
139
140{foreach from=$value item=line}
141{if $pricesetFieldsCount }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
142{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"} {$line.line_total|crmMoney:$currency|string_format:"%10s"}{$ts_participant_count|string_format:"%10s"}
143{/foreach}
144{/if}
145{/foreach}
146{/if}
147{if $amounts && !$lineItem}
148{foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label}
149{/foreach}
150{/if}
151{if $isPrimary }
152
153{ts}Total Amount{/ts}: {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
154
155{if $pricesetFieldsCount }
156 {assign var="count" value= 0}
157 {foreach from=$lineItem item=pcount}
158 {assign var="lineItemCount" value=0}
159 {if $pcount neq 'skip'}
160 {foreach from=$pcount item=p_count}
161 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
162 {/foreach}
163 {if $lineItemCount < 1 }
164 {assign var="lineItemCount" value=1}
2efcf0c2 165 {/if}
5d9ebb64
PJ
166 {assign var="count" value=$count+$lineItemCount}
167 {/if}
168 {/foreach}
169
170{ts}Total Participants{/ts}: {$count}
171{/if}
2efcf0c2 172
5d9ebb64
PJ
173{if $register_date}
174{ts}Registration Date{/ts}: {$register_date|crmDate}
175{/if}
176{if $receive_date}
177{ts}Transaction Date{/ts}: {$receive_date|crmDate}
178{/if}
179{if $contributionTypeName}
180{ts}Financial Type{/ts}: {$contributionTypeName}
181{/if}
182{if $trxn_id}
183{ts}Transaction #{/ts}: {$trxn_id}
184{/if}
185{if $paidBy}
186{ts}Paid By{/ts}: {$paidBy}
187{/if}
188{if $checkNumber}
189{ts}Check Number{/ts}: {$checkNumber}
190{/if}
191{if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
192
193==========================================================={if $pricesetFieldsCount }===================={/if}
194
195{ts}Billing Name and Address{/ts}
196
197==========================================================={if $pricesetFieldsCount }===================={/if}
198
199{$billingName}
200{$address}
201{/if}
202
203{if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
204==========================================================={if $pricesetFieldsCount }===================={/if}
205
206{ts}Credit Card Information{/ts}
207
208==========================================================={if $pricesetFieldsCount }===================={/if}
209
210{$credit_card_type}
211{$credit_card_number}
212{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
213{/if}
214{/if}
215{/if} {* End of conditional section for Paid events *}
216
217{if $customPre}
218{foreach from=$customPre item=customPr key=i}
219==========================================================={if $pricesetFieldsCount }===================={/if}
220
221{$customPre_grouptitle.$i}
222==========================================================={if $pricesetFieldsCount }===================={/if}
223
224{foreach from=$customPr item=customValue key=customName}
225{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
226 {$customName}: {$customValue}
227{/if}
228{/foreach}
229{/foreach}
230{/if}
231
232{if $customPost}
233{foreach from=$customPost item=customPos key=j}
234==========================================================={if $pricesetFieldsCount }===================={/if}
235
2efcf0c2 236{$customPost_grouptitle.$j}
5d9ebb64
PJ
237==========================================================={if $pricesetFieldsCount }===================={/if}
238
239{foreach from=$customPos item=customValue key=customName}
240{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
241 {$customName}: {$customValue}
242{/if}
243{/foreach}
244{/foreach}
245{/if}
246{if $customProfile}
247
248{foreach from=$customProfile.profile item=eachParticipant key=participantID}
249==========================================================={if $pricesetFieldsCount }===================={/if}
250
251{ts 1=$participantID+2}Participant Information - Participant %1{/ts}
252
253==========================================================={if $pricesetFieldsCount }===================={/if}
254
255{foreach from=$eachParticipant item=eachProfile key=pid}
256----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
257
258{$customProfile.title.$pid}
259----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
260
261{foreach from=$eachProfile item=val key=field}
262{foreach from=$val item=v key=f}
263{$field}: {$v}
264{/foreach}
265{/foreach}
266{/foreach}
267{/foreach}
268{/if}
269{if $customGroup}
270{foreach from=$customGroup item=value key=customName}
271=========================================================={if $pricesetFieldsCount }===================={/if}
272
273{$customName}
274=========================================================={if $pricesetFieldsCount }===================={/if}
275
276{foreach from=$value item=v key=n}
277{$n}: {$v}
278{/foreach}
279{/foreach}
280{/if}