Merge pull request #16307 from seamuslee001/dev_mail_59
[civicrm-core.git] / xml / templates / message_templates / event_online_receipt_text.tpl
1 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
2 {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
3 {$event.confirm_email_text}
4
5 {else}
6 {ts}Thank you for your registration.{/ts}
7 {if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to %1.{/ts}
8 {else}{if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to waitlisted.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to registered.{/ts}{/if}
9 {/if}
10 {/if}
11
12 {if $isOnWaitlist}
13 ==========================================================={if $pricesetFieldsCount }===================={/if}
14
15 {ts}You have been added to the WAIT LIST for this event.{/ts}
16
17 {if $isPrimary}
18 {ts}If space becomes available you will receive an email with 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 an email with a link to a web page where you can complete the registration process.{/ts}
29
30 {/if}
31 ==========================================================={if $pricesetFieldsCount }===================={/if}
32
33 {elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
34
35 ==========================================================={if $pricesetFieldsCount }===================={/if}
36
37 {$pay_later_receipt}
38 ==========================================================={if $pricesetFieldsCount }===================={/if}
39
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|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}
51 {if $conference_sessions}
52
53
54 {ts}Your schedule:{/ts}
55 {assign var='group_by_day' value='NA'}
56 {foreach from=$conference_sessions item=session}
57 {if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
58 {assign var='group_by_day' value=$session.start_date}
59
60 {$group_by_day|date_format:"%m/%d/%Y"}
61
62
63 {/if}
64 {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}
65 {if $session.location} {$session.location}{/if}
66 {/foreach}
67 {/if}
68
69 {if $event.participant_role neq 'Attendee' and $defaultRole}
70 {ts}Participant Role{/ts}: {$event.participant_role}
71 {/if}
72
73 {if $isShowLocation}
74 {$location.address.1.display|strip_tags:false}
75 {/if}{*End of isShowLocation condition*}
76
77 {if $location.phone.1.phone || $location.email.1.email}
78
79 {ts}Event Contacts:{/ts}
80 {foreach from=$location.phone item=phone}
81 {if $phone.phone}
82
83 {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}
84 {/foreach}
85 {foreach from=$location.email item=eventEmail}
86 {if $eventEmail.email}
87
88 {ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
89 {/if}
90
91 {if $event.is_public}
92 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
93 {ts}Download iCalendar File:{/ts} {$icalFeed}
94 {/if}
95
96 {if $payer.name}
97 You were registered by: {$payer.name}
98 {/if}
99 {if $event.is_monetary and not $isRequireApproval} {* This section for Paid events only.*}
100
101 ==========================================================={if $pricesetFieldsCount }===================={/if}
102
103 {$event.fee_label}
104 ==========================================================={if $pricesetFieldsCount }===================={/if}
105
106 {if $lineItem}{foreach from=$lineItem item=value key=priceset}
107
108 {if $value neq 'skip'}
109 {if $isPrimary}
110 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
111 {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
112
113 {/if}
114 {/if}
115 -----------------------------------------------------------{if $pricesetFieldsCount }-----------------------------------------------------{/if}
116
117 {capture assign=ts_item}{ts}Item{/ts}{/capture}
118 {capture assign=ts_qty}{ts}Qty{/ts}{/capture}
119 {capture assign=ts_each}{ts}Each{/ts}{/capture}
120 {if $dataArray}
121 {capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
122 {capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
123 {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
124 {/if}
125 {capture assign=ts_total}{ts}Total{/ts}{/capture}
126 {if $pricesetFieldsCount }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}
127 {$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"}
128 -----------------------------------------------------------{if $pricesetFieldsCount }-----------------------------------------------------{/if}
129
130 {foreach from=$value item=line}
131 {if $pricesetFieldsCount }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
132 {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"}
133 {/foreach}
134 ----------------------------------------------------------------------------------------------------------------
135 {if $individual}{ts}Participant Total{/ts} {$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:"%29s"} {$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:"%33s"} {$individual.$priceset.totalAmtWithTax|crmMoney:$currency|string_format:"%12s"}{/if}
136 {/if}
137 {""|string_format:"%120s"}
138 {/foreach}
139 {""|string_format:"%120s"}
140
141 {if $dataArray}
142 {ts}Amount before Tax{/ts}: {$totalAmount-$totalTaxAmount|crmMoney:$currency}
143
144 {foreach from=$dataArray item=value key=priceset}
145 {if $priceset || $priceset == 0}
146 {$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
147 {else}
148 {ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
149 {/if}
150 {/foreach}
151 {/if}
152 {/if}
153
154 {if $amounts && !$lineItem}
155 {foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label}
156 {/foreach}
157 {/if}
158
159 {if $totalTaxAmount}
160 {ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
161 {/if}
162 {if $isPrimary }
163
164 {ts}Total Amount{/ts}: {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
165
166 {if $pricesetFieldsCount }
167 {assign var="count" value= 0}
168 {foreach from=$lineItem item=pcount}
169 {assign var="lineItemCount" value=0}
170 {if $pcount neq 'skip'}
171 {foreach from=$pcount item=p_count}
172 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
173 {/foreach}
174 {if $lineItemCount < 1 }
175 {assign var="lineItemCount" value=1}
176 {/if}
177 {assign var="count" value=$count+$lineItemCount}
178 {/if}
179 {/foreach}
180
181 {ts}Total Participants{/ts}: {$count}
182 {/if}
183
184 {if $register_date}
185 {ts}Registration Date{/ts}: {$register_date|crmDate}
186 {/if}
187 {if $receive_date}
188 {ts}Transaction Date{/ts}: {$receive_date|crmDate}
189 {/if}
190 {if $financialTypeName}
191 {ts}Financial Type{/ts}: {$financialTypeName}
192 {/if}
193 {if $trxn_id}
194 {ts}Transaction #{/ts}: {$trxn_id}
195 {/if}
196 {if $paidBy}
197 {ts}Paid By{/ts}: {$paidBy}
198 {/if}
199 {if $checkNumber}
200 {ts}Check Number{/ts}: {$checkNumber}
201 {/if}
202 {if $billingName}
203
204 ==========================================================={if $pricesetFieldsCount }===================={/if}
205
206 {ts}Billing Name and Address{/ts}
207
208 ==========================================================={if $pricesetFieldsCount }===================={/if}
209
210 {$billingName}
211 {$address}
212 {/if}
213
214 {if $credit_card_type}
215 ==========================================================={if $pricesetFieldsCount }===================={/if}
216
217 {ts}Credit Card Information{/ts}
218
219 ==========================================================={if $pricesetFieldsCount }===================={/if}
220
221 {$credit_card_type}
222 {$credit_card_number}
223 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
224 {/if}
225 {/if}
226 {/if} {* End of conditional section for Paid events *}
227
228 {if $customPre}
229 {foreach from=$customPre item=customPr key=i}
230 ==========================================================={if $pricesetFieldsCount }===================={/if}
231
232 {$customPre_grouptitle.$i}
233 ==========================================================={if $pricesetFieldsCount }===================={/if}
234
235 {foreach from=$customPr item=customValue key=customName}
236 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
237 {$customName}: {$customValue}
238 {/if}
239 {/foreach}
240 {/foreach}
241 {/if}
242
243 {if $customPost}
244 {foreach from=$customPost item=customPos key=j}
245 ==========================================================={if $pricesetFieldsCount }===================={/if}
246
247 {$customPost_grouptitle.$j}
248 ==========================================================={if $pricesetFieldsCount }===================={/if}
249
250 {foreach from=$customPos item=customValue key=customName}
251 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
252 {$customName}: {$customValue}
253 {/if}
254 {/foreach}
255 {/foreach}
256 {/if}
257 {if $customProfile}
258
259 {foreach from=$customProfile.profile item=eachParticipant key=participantID}
260 ==========================================================={if $pricesetFieldsCount }===================={/if}
261
262 {ts 1=$participantID+2}Participant Information - Participant %1{/ts}
263
264 ==========================================================={if $pricesetFieldsCount }===================={/if}
265
266 {foreach from=$eachParticipant item=eachProfile key=pid}
267 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
268
269 {$customProfile.title.$pid}
270 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
271
272 {foreach from=$eachProfile item=val key=field}
273 {foreach from=$val item=v key=f}
274 {$field}: {$v}
275 {/foreach}
276 {/foreach}
277 {/foreach}
278 {/foreach}
279 {/if}
280 {if $customGroup}
281 {foreach from=$customGroup item=value key=customName}
282 =========================================================={if $pricesetFieldsCount }===================={/if}
283
284 {$customName}
285 =========================================================={if $pricesetFieldsCount }===================={/if}
286
287 {foreach from=$value item=v key=n}
288 {$n}: {$v}
289 {/foreach}
290 {/foreach}
291 {/if}
292
293 {if $event.allow_selfcancelxfer }
294 {ts 1=$event.selfcancelxfer_time}You may transfer your registration to another participant or cancel your registration up to %1 hours before the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}
295 {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
296 {ts}Transfer or cancel your registration:{/ts} {$selfService}
297 {/if}