Merge pull request #24071 from eileenmcnaughton/conf
[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 !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($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 !empty($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 !empty($isOnWaitlist)}
13 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
14
15 {ts}You have been added to the WAIT LIST for this event.{/ts}
16
17 {if !empty($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 !empty($pricesetFieldsCount)}===================={/if}
21
22 {elseif !empty($isRequireApproval)}
23 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
24
25 {ts}Your registration has been submitted.{/ts}
26
27 {if !empty($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 !empty($pricesetFieldsCount)}===================={/if}
32
33 {elseif !empty($is_pay_later) && empty($isAmountzero) && empty($isAdditionalParticipant)}
34
35 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
36
37 {if isset($pay_later_receipt)}{$pay_later_receipt}{/if}
38 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
39
40 {/if}
41
42
43 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
44
45 {ts}Event Information and Location{/ts}
46
47 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
48
49 {$event.event_title}
50 {$event.event_start_date|crmDate:"%A"} {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate:"%A"} {$event.event_end_date|crmDate}{/if}{/if}
51 {if !empty($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|crmDate:"%Y/%m/%d" != $group_by_day|crmDate:"%Y/%m/%d"}
58 {assign var='group_by_day' value=$session.start_date}
59
60 {$group_by_day|crmDate:"%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 !empty($event.participant_role) and $event.participant_role neq 'Attendee' and !empty($defaultRole)}
70 {ts}Participant Role{/ts}: {$event.participant_role}
71 {/if}
72
73 {if !empty($isShowLocation)}
74 {$location.address.1.display|strip_tags:false}
75 {/if}{*End of isShowLocation condition*}
76
77 {if !empty($location.phone.1.phone) || !empty($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 !empty($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 entry for this event.{/ts} {$icalFeed}
94 {capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
95 {ts}Add event to Google Calendar{/ts} {$gCalendar}
96 {/if}
97
98 {if !empty($payer.name)}
99 You were registered by: {$payer.name}
100 {/if}
101 {if !empty($event.is_monetary) and empty($isRequireApproval)} {* This section for Paid events only.*}
102
103 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
104
105 {if !empty ($event.fee_label)}{$event.fee_label}{/if}
106 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
107
108 {if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}
109
110 {if $value neq 'skip'}
111 {if !empty($isPrimary)}
112 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
113 {ts 1=$priceset+1}Participant %1{/ts} {if !empty($part.$priceset)}{$part.$priceset.info}{/if}
114
115 {/if}
116 {/if}
117 -----------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if}
118
119 {capture assign=ts_item}{ts}Item{/ts}{/capture}
120 {capture assign=ts_qty}{ts}Qty{/ts}{/capture}
121 {capture assign=ts_each}{ts}Each{/ts}{/capture}
122 {if !empty($dataArray)}
123 {capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
124 {capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
125 {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
126 {/if}
127 {capture assign=ts_total}{ts}Total{/ts}{/capture}
128 {if !empty($pricesetFieldsCount) }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}
129 {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if !empty($dataArray)} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {if !empty($ts_participant_total)}{$ts_participant_total|string_format:"%10s"}{/if}
130 -----------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if}
131
132 {foreach from=$value item=line}
133 {if !empty($pricesetFieldsCount) }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
134 {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 !empty($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"}{if !empty($ts_participant_count)}{$ts_participant_count|string_format:"%10s"}{/if}
135 {/foreach}
136 ----------------------------------------------------------------------------------------------------------------
137 {if !empty($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}
138 {/if}
139 {""|string_format:"%120s"}
140 {/foreach}
141 {""|string_format:"%120s"}
142
143 {if !empty($dataArray)}
144 {if isset($totalAmount) and isset($totalTaxAmount)}
145 {ts}Amount before Tax{/ts}: {$totalAmount-$totalTaxAmount|crmMoney:$currency}
146 {/if}
147
148 {foreach from=$dataArray item=value key=priceset}
149 {if $priceset || $priceset == 0}
150 {$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
151 {else}
152 {ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
153 {/if}
154 {/foreach}
155 {/if}
156 {/if}
157
158 {if !empty($amounts) && empty($lineItem)}
159 {foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label}
160 {/foreach}
161 {/if}
162
163 {if isset($totalTaxAmount)}
164 {ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
165 {/if}
166 {if !empty($isPrimary) }
167
168 {ts}Total Amount{/ts}: {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}
169
170 {if !empty($pricesetFieldsCount) }
171 {assign var="count" value= 0}
172 {foreach from=$lineItem item=pcount}
173 {assign var="lineItemCount" value=0}
174 {if $pcount neq 'skip'}
175 {foreach from=$pcount item=p_count}
176 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
177 {/foreach}
178 {if $lineItemCount < 1 }
179 {assign var="lineItemCount" value=1}
180 {/if}
181 {assign var="count" value=$count+$lineItemCount}
182 {/if}
183 {/foreach}
184
185 {ts}Total Participants{/ts}: {$count}
186 {/if}
187
188 {if $register_date}
189 {ts}Registration Date{/ts}: {$register_date|crmDate}
190 {/if}
191 {if !empty($receive_date)}
192 {ts}Transaction Date{/ts}: {$receive_date|crmDate}
193 {/if}
194 {if !empty($financialTypeName)}
195 {ts}Financial Type{/ts}: {$financialTypeName}
196 {/if}
197 {if !empty($trxn_id)}
198 {ts}Transaction #{/ts}: {$trxn_id}
199 {/if}
200 {if !empty($paidBy)}
201 {ts}Paid By{/ts}: {$paidBy}
202 {/if}
203 {if !empty($checkNumber)}
204 {ts}Check Number{/ts}: {$checkNumber}
205 {/if}
206 {if !empty($billingName)}
207
208 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
209
210 {ts}Billing Name and Address{/ts}
211
212 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
213
214 {$billingName}
215 {$address}
216 {/if}
217
218 {if !empty($credit_card_type)}
219 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
220
221 {ts}Credit Card Information{/ts}
222
223 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
224
225 {$credit_card_type}
226 {$credit_card_number}
227 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
228 {/if}
229 {/if}
230 {/if} {* End of conditional section for Paid events *}
231
232 {if !empty($customPre)}
233 {foreach from=$customPre item=customPr key=i}
234 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
235
236 {$customPre_grouptitle.$i}
237 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
238
239 {foreach from=$customPr item=customValue key=customName}
240 {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
241 {$customName}: {$customValue}
242 {/if}
243 {/foreach}
244 {/foreach}
245 {/if}
246
247 {if !empty($customPost)}
248 {foreach from=$customPost item=customPos key=j}
249 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
250
251 {$customPost_grouptitle.$j}
252 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
253
254 {foreach from=$customPos item=customValue key=customName}
255 {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
256 {$customName}: {$customValue}
257 {/if}
258 {/foreach}
259 {/foreach}
260 {/if}
261 {if !empty($customProfile)}
262
263 {foreach from=$customProfile.profile item=eachParticipant key=participantID}
264 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
265
266 {ts 1=$participantID+2}Participant Information - Participant %1{/ts}
267
268 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
269
270 {foreach from=$eachParticipant item=eachProfile key=pid}
271 ----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if}
272
273 {$customProfile.title.$pid}
274 ----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if}
275
276 {foreach from=$eachProfile item=val key=field}
277 {foreach from=$val item=v key=f}
278 {$field}: {$v}
279 {/foreach}
280 {/foreach}
281 {/foreach}
282 {/foreach}
283 {/if}
284
285 {if !empty($event.allow_selfcancelxfer) }
286 {ts 1=$selfcancelxfer_time 2=$selfservice_preposition}You may transfer your registration to another participant or cancel your registration up to %1 hours %2 the event.{/ts} {if !empty($totalAmount)}{ts}Cancellations are not refundable.{/ts}{/if}
287 {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
288 {ts}Transfer or cancel your registration:{/ts} {$selfService}
289 {/if}