Merge pull request #12647 from compucorp/fix-case-type-issues
[civicrm-core.git] / xml / templates / message_templates / event_online_receipt_text.tpl
CommitLineData
e74e138c 1{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
6a488035
TO
2{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
3{$event.confirm_email_text}
4
5{else}
a0b8d522 6 {ts}Thank you for your participation.{/ts}
7 {if $participant_status}{ts 1=$participant_status}This letter is a confirmation that your registration has been received and your status has been updated to %1.{/ts}
8 {else}{if $isOnWaitlist}{ts}This letter is a confirmation that your registration has been received and your status has been updated to waitlisted.{/ts}{else}{ts}This letter is a confirmation that your registration has been received and your status has been updated to registered.{/ts}{/if}
9 {/if}.
6a488035
TO
10
11{/if}
12
13{if $isOnWaitlist}
14==========================================================={if $pricesetFieldsCount }===================={/if}
15
16{ts}You have been added to the WAIT LIST for this event.{/ts}
17
18{if $isPrimary}
0865a4ed 19{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
20{/if}
21==========================================================={if $pricesetFieldsCount }===================={/if}
22
23{elseif $isRequireApproval}
24==========================================================={if $pricesetFieldsCount }===================={/if}
25
26{ts}Your registration has been submitted.{/ts}
27
28{if $isPrimary}
0865a4ed 29{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
30
31{/if}
32==========================================================={if $pricesetFieldsCount }===================={/if}
33
7d92d486 34{elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
6a488035
TO
35
36==========================================================={if $pricesetFieldsCount }===================={/if}
37
38{$pay_later_receipt}
39==========================================================={if $pricesetFieldsCount }===================={/if}
40
41{else}
42
43{ts}Please print this confirmation for your records.{/ts}
44{/if}
45
46
47==========================================================={if $pricesetFieldsCount }===================={/if}
48
49{ts}Event Information and Location{/ts}
50
51==========================================================={if $pricesetFieldsCount }===================={/if}
52
53{$event.event_title}
54{$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}
55{if $conference_sessions}
56
57
58{ts}Your schedule:{/ts}
59{assign var='group_by_day' value='NA'}
60{foreach from=$conference_sessions item=session}
61{if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
62{assign var='group_by_day' value=$session.start_date}
63
64{$group_by_day|date_format:"%m/%d/%Y"}
65
66
67{/if}
68{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}
69{if $session.location} {$session.location}{/if}
70{/foreach}
71{/if}
72
73{if $event.participant_role neq 'Attendee' and $defaultRole}
74{ts}Participant Role{/ts}: {$event.participant_role}
75{/if}
76
77{if $isShowLocation}
d74c297f 78{$location.address.1.display|strip_tags:false}
6a488035
TO
79{/if}{*End of isShowLocation condition*}
80
81{if $location.phone.1.phone || $location.email.1.email}
82
83{ts}Event Contacts:{/ts}
84{foreach from=$location.phone item=phone}
85{if $phone.phone}
86
5d9ebb64 87{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
88{/foreach}
89{foreach from=$location.email item=eventEmail}
90{if $eventEmail.email}
91
92{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
93{/if}
94
ebf2b57b 95{if $event.is_public}
6a488035
TO
96{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
97{ts}Download iCalendar File:{/ts} {$icalFeed}
4de4dbe9 98{/if}
6a488035
TO
99
100{if $payer.name}
101You were registered by: {$payer.name}
102{/if}
4e0e5c1b 103{if $event.is_monetary and not $isRequireApproval} {* This section for Paid events only.*}
6a488035
TO
104
105==========================================================={if $pricesetFieldsCount }===================={/if}
106
107{$event.fee_label}
108==========================================================={if $pricesetFieldsCount }===================={/if}
109
110{if $lineItem}{foreach from=$lineItem item=value key=priceset}
111
112{if $value neq 'skip'}
113{if $isPrimary}
114{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
115{ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
116
117{/if}
118{/if}
75b065ce 119-----------------------------------------------------------{if $pricesetFieldsCount }-----------------------------------------------------{/if}
6a488035
TO
120
121{capture assign=ts_item}{ts}Item{/ts}{/capture}
122{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
123{capture assign=ts_each}{ts}Each{/ts}{/capture}
7cf82823 124{if $dataArray}
79d001a2
PB
125{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
126{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
127{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
128{/if}
6a488035
TO
129{capture assign=ts_total}{ts}Total{/ts}{/capture}
130{if $pricesetFieldsCount }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}
7cf82823 131{$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"}
75b065ce 132-----------------------------------------------------------{if $pricesetFieldsCount }-----------------------------------------------------{/if}
6a488035
TO
133
134{foreach from=$value item=line}
135{if $pricesetFieldsCount }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
7cf82823 136{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 137{/foreach}
75b065ce 138----------------------------------------------------------------------------------------------------------------
e7a338d9 139{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}
79d001a2 140{/if}
75b065ce 141{""|string_format:"%120s"}
6a488035 142{/foreach}
75b065ce 143{""|string_format:"%120s"}
79d001a2 144
7cf82823 145{if $dataArray}
79d001a2
PB
146{ts}Amount before Tax{/ts}: {$totalAmount-$totalTaxAmount|crmMoney:$currency}
147
148{foreach from=$dataArray item=value key=priceset}
7cf82823 149{if $priceset || $priceset == 0}
03b412ae 150{$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
7cf82823 151{else}
03b412ae 152{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
6a488035
TO
153{/if}
154{/foreach}
155{/if}
79d001a2
PB
156{/if}
157
6a488035
TO
158{if $amounts && !$lineItem}
159{foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label}
160{/foreach}
161{/if}
79d001a2
PB
162
163{if $totalTaxAmount}
164{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
165{/if}
6a488035
TO
166{if $isPrimary }
167
168{ts}Total Amount{/ts}: {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
169
170{if $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}
a235e13c 180 {/if}
6a488035
TO
181 {assign var="count" value=$count+$lineItemCount}
182 {/if}
183 {/foreach}
184
185{ts}Total Participants{/ts}: {$count}
186{/if}
a235e13c 187
6a488035
TO
188{if $register_date}
189{ts}Registration Date{/ts}: {$register_date|crmDate}
190{/if}
191{if $receive_date}
192{ts}Transaction Date{/ts}: {$receive_date|crmDate}
193{/if}
b956b310 194{if $financialTypeName}
195{ts}Financial Type{/ts}: {$financialTypeName}
6a488035
TO
196{/if}
197{if $trxn_id}
198{ts}Transaction #{/ts}: {$trxn_id}
199{/if}
200{if $paidBy}
201{ts}Paid By{/ts}: {$paidBy}
202{/if}
203{if $checkNumber}
204{ts}Check Number{/ts}: {$checkNumber}
205{/if}
e45f6ab0 206{if $contributeMode ne 'notify' and !$isAmountzero and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and !$isOnWaitlist and !$isRequireApproval}
6a488035
TO
207
208==========================================================={if $pricesetFieldsCount }===================={/if}
209
210{ts}Billing Name and Address{/ts}
211
212==========================================================={if $pricesetFieldsCount }===================={/if}
213
214{$billingName}
215{$address}
216{/if}
217
218{if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
219==========================================================={if $pricesetFieldsCount }===================={/if}
220
221{ts}Credit Card Information{/ts}
222
223==========================================================={if $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 $customPre}
233{foreach from=$customPre item=customPr key=i}
234==========================================================={if $pricesetFieldsCount }===================={/if}
235
236{$customPre_grouptitle.$i}
237==========================================================={if $pricesetFieldsCount }===================={/if}
238
239{foreach from=$customPr 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
247{if $customPost}
248{foreach from=$customPost item=customPos key=j}
249==========================================================={if $pricesetFieldsCount }===================={/if}
250
a235e13c 251{$customPost_grouptitle.$j}
6a488035
TO
252==========================================================={if $pricesetFieldsCount }===================={/if}
253
254{foreach from=$customPos item=customValue key=customName}
255{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
256 {$customName}: {$customValue}
257{/if}
258{/foreach}
259{/foreach}
260{/if}
261{if $customProfile}
262
263{foreach from=$customProfile.profile item=eachParticipant key=participantID}
264==========================================================={if $pricesetFieldsCount }===================={/if}
265
266{ts 1=$participantID+2}Participant Information - Participant %1{/ts}
267
268==========================================================={if $pricesetFieldsCount }===================={/if}
269
270{foreach from=$eachParticipant item=eachProfile key=pid}
271----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
272
273{$customProfile.title.$pid}
274----------------------------------------------------------{if $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{if $customGroup}
285{foreach from=$customGroup item=value key=customName}
286=========================================================={if $pricesetFieldsCount }===================={/if}
287
288{$customName}
289=========================================================={if $pricesetFieldsCount }===================={/if}
290
291{foreach from=$value item=v key=n}
292{$n}: {$v}
293{/foreach}
294{/foreach}
295{/if}
e3b510fe 296
97d8187a 297{if $event.allow_selfcancelxfer }
adaa01fa 298{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}
97d8187a 299 {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
adaa01fa 300{ts}Transfer or cancel your registration:{/ts} {$selfService}
97d8187a 301{/if}