Merge pull request #2658 from JKingsnorth/CRM-14340
[civicrm-core.git] / xml / templates / message_templates / event_online_receipt_text.tpl
1 Dear {contact.display_name},
2
3 {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
4 {$event.confirm_email_text}
5
6 {else}
7 Thank 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}.
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
18 a 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
29 an email with a link to a web page where you can complete the
30 registration process.{/ts}
31
32 {/if}
33 ==========================================================={if $pricesetFieldsCount }===================={/if}
34
35 {elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
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 {if $event.is_public}
109 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
110 {ts}Download iCalendar File:{/ts} {$icalFeed}
111 {/if}
112
113 {if $payer.name}
114 You were registered by: {$payer.name}
115 {/if}
116 {if $event.is_monetary} {* This section for Paid events only.*}
117
118 ==========================================================={if $pricesetFieldsCount }===================={/if}
119
120 {$event.fee_label}
121 ==========================================================={if $pricesetFieldsCount }===================={/if}
122
123 {if $lineItem}{foreach from=$lineItem item=value key=priceset}
124
125 {if $value neq 'skip'}
126 {if $isPrimary}
127 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
128 {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
129
130 {/if}
131 {/if}
132 -----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
133
134 {capture assign=ts_item}{ts}Item{/ts}{/capture}
135 {capture assign=ts_qty}{ts}Qty{/ts}{/capture}
136 {capture assign=ts_each}{ts}Each{/ts}{/capture}
137 {capture assign=ts_total}{ts}Total{/ts}{/capture}
138 {if $pricesetFieldsCount }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}
139 {$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"}
140 -----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
141
142 {foreach from=$value item=line}
143 {if $pricesetFieldsCount }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
144 {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"}
145 {/foreach}
146 {/if}
147 {/foreach}
148 {/if}
149 {if $amounts && !$lineItem}
150 {foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label}
151 {/foreach}
152 {/if}
153 {if $isPrimary }
154
155 {ts}Total Amount{/ts}: {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
156
157 {if $pricesetFieldsCount }
158 {assign var="count" value= 0}
159 {foreach from=$lineItem item=pcount}
160 {assign var="lineItemCount" value=0}
161 {if $pcount neq 'skip'}
162 {foreach from=$pcount item=p_count}
163 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
164 {/foreach}
165 {if $lineItemCount < 1 }
166 {assign var="lineItemCount" value=1}
167 {/if}
168 {assign var="count" value=$count+$lineItemCount}
169 {/if}
170 {/foreach}
171
172 {ts}Total Participants{/ts}: {$count}
173 {/if}
174
175 {if $register_date}
176 {ts}Registration Date{/ts}: {$register_date|crmDate}
177 {/if}
178 {if $receive_date}
179 {ts}Transaction Date{/ts}: {$receive_date|crmDate}
180 {/if}
181 {if $contributionTypeName}
182 {ts}Financial Type{/ts}: {$contributionTypeName}
183 {/if}
184 {if $trxn_id}
185 {ts}Transaction #{/ts}: {$trxn_id}
186 {/if}
187 {if $paidBy}
188 {ts}Paid By{/ts}: {$paidBy}
189 {/if}
190 {if $checkNumber}
191 {ts}Check Number{/ts}: {$checkNumber}
192 {/if}
193 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
194
195 ==========================================================={if $pricesetFieldsCount }===================={/if}
196
197 {ts}Billing Name and Address{/ts}
198
199 ==========================================================={if $pricesetFieldsCount }===================={/if}
200
201 {$billingName}
202 {$address}
203 {/if}
204
205 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
206 ==========================================================={if $pricesetFieldsCount }===================={/if}
207
208 {ts}Credit Card Information{/ts}
209
210 ==========================================================={if $pricesetFieldsCount }===================={/if}
211
212 {$credit_card_type}
213 {$credit_card_number}
214 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
215 {/if}
216 {/if}
217 {/if} {* End of conditional section for Paid events *}
218
219 {if $customPre}
220 {foreach from=$customPre item=customPr key=i}
221 ==========================================================={if $pricesetFieldsCount }===================={/if}
222
223 {$customPre_grouptitle.$i}
224 ==========================================================={if $pricesetFieldsCount }===================={/if}
225
226 {foreach from=$customPr item=customValue key=customName}
227 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
228 {$customName}: {$customValue}
229 {/if}
230 {/foreach}
231 {/foreach}
232 {/if}
233
234 {if $customPost}
235 {foreach from=$customPost item=customPos key=j}
236 ==========================================================={if $pricesetFieldsCount }===================={/if}
237
238 {$customPost_grouptitle.$j}
239 ==========================================================={if $pricesetFieldsCount }===================={/if}
240
241 {foreach from=$customPos item=customValue key=customName}
242 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
243 {$customName}: {$customValue}
244 {/if}
245 {/foreach}
246 {/foreach}
247 {/if}
248 {if $customProfile}
249
250 {foreach from=$customProfile.profile item=eachParticipant key=participantID}
251 ==========================================================={if $pricesetFieldsCount }===================={/if}
252
253 {ts 1=$participantID+2}Participant Information - Participant %1{/ts}
254
255 ==========================================================={if $pricesetFieldsCount }===================={/if}
256
257 {foreach from=$eachParticipant item=eachProfile key=pid}
258 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
259
260 {$customProfile.title.$pid}
261 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
262
263 {foreach from=$eachProfile item=val key=field}
264 {foreach from=$val item=v key=f}
265 {$field}: {$v}
266 {/foreach}
267 {/foreach}
268 {/foreach}
269 {/foreach}
270 {/if}
271 {if $customGroup}
272 {foreach from=$customGroup item=value key=customName}
273 =========================================================={if $pricesetFieldsCount }===================={/if}
274
275 {$customName}
276 =========================================================={if $pricesetFieldsCount }===================={/if}
277
278 {foreach from=$value item=v key=n}
279 {$n}: {$v}
280 {/foreach}
281 {/foreach}
282 {/if}