[REF][PHP8.1] Replace usage of the date_format modifer with crmDate to resolve issues...
[civicrm-core.git] / xml / templates / message_templates / event_offline_receipt_text.tpl
CommitLineData
cb342529 1{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
ff708ff0 2{if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}
6a488035
TO
3{$event.confirm_email_text}
4{/if}
5
ff708ff0
SL
6{if !empty($isOnWaitlist)}
7==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
8
9{ts}You have been added to the WAIT LIST for this event.{/ts}
10
a221e1e0 11{if !empty($isPrimary)}
0865a4ed 12{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
13
14{/if}
ff708ff0 15==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035 16
ff708ff0
SL
17{elseif !empty($isRequireApproval)}
18==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
19
20{ts}Your registration has been submitted.{/ts}
21
a221e1e0 22{if !empty($isPrimary)}
0865a4ed 23{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
24
25{/if}
ff708ff0 26==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035 27
f538b847 28{elseif $is_pay_later}
6a488035 29
ff708ff0 30==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035 31
f634801a 32{$pay_later_receipt}
ff708ff0 33==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035 34
6a488035
TO
35{/if}
36
37
ff708ff0 38==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
39
40{ts}Event Information and Location{/ts}
41
ff708ff0 42==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
43
44{$event.event_title}
970cdb44 45{$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}{/if}{/if}
6a488035 46
ff708ff0 47{if !empty($event.participant_role) and $event.participant_role neq 'Attendee' and empty($defaultRole)}
6a488035
TO
48{ts}Participant Role{/ts}: {$event.participant_role}
49{/if}
50
ff708ff0 51{if !empty($isShowLocation)}
d74c297f 52{$location.address.1.display|strip_tags:false}
6a488035
TO
53{/if}{*End of isShowLocation condition*}
54
ff708ff0 55{if !empty($location.phone.1.phone) || !empty($location.email.1.email)}
6a488035
TO
56
57{ts}Event Contacts:{/ts}
58{foreach from=$location.phone item=phone}
59{if $phone.phone}
60
5d9ebb64 61{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
62{/foreach}
63{foreach from=$location.email item=eventEmail}
64{if $eventEmail.email}
65
66{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
67{/if}
68
ff708ff0 69{if !empty($event.is_public)}
6a488035 70{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
a2cadd75
FW
71{ts}Download iCalendar entry for this event.{/ts} {$icalFeed}
72{capture assign=gCalendar}{crmURL p='civicrm/event/ical' q="gCalendar=1&reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
73{ts}Add event to Google Calendar{/ts} {$gCalendar}
4de4dbe9
J
74{/if}
75
ff708ff0 76{if !empty($email)}
6a488035 77
ff708ff0 78==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
79
80{ts}Registered Email{/ts}
81
ff708ff0 82==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
83
84{$email}
85{/if}
ff708ff0 86{if !empty($event.is_monetary)} {* This section for Paid events only.*}
6a488035 87
ff708ff0 88==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035 89
ff708ff0
SL
90{if !empty($event.fee_label)}{$event.fee_label}{/if}
91==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035 92
ff708ff0 93{if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}
6a488035
TO
94
95{if $value neq 'skip'}
ff708ff0 96{if !empty($isPrimary)}
6a488035
TO
97{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
98{ts 1=$priceset+1}Participant %1{/ts}
99{/if}
100{/if}
ff708ff0 101---------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if}
6a488035
TO
102
103{capture assign=ts_item}{ts}Item{/ts}{/capture}
104{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
105{capture assign=ts_each}{ts}Each{/ts}{/capture}
ff708ff0 106{if !empty($dataArray)}
79d001a2
PB
107{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
108{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
109{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
110{/if}
6a488035 111{capture assign=ts_total}{ts}Total{/ts}{/capture}
ff708ff0
SL
112{capture assign=ts_participant_total}{if !empty($pricesetFieldsCount) }{ts}Total Participants{/ts}{/if}{/capture}
113{$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}
114----------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if}
6a488035
TO
115
116{foreach from=$value item=line}
ff708ff0 117{if !empty($pricesetFieldsCount) }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
5b949c7d 118{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|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|string_format:"%10s"} {if !empty($ts_participant_count)}{$ts_participant_count|string_format:"%10s"}{/if}
79d001a2
PB
119{/foreach}
120{/if}
6a488035 121{/foreach}
79d001a2 122
ff708ff0 123{if !empty($dataArray)}
a4fd2c03 124{if $totalAmount and $totalTaxAmount}
79d001a2 125{ts}Amount before Tax{/ts}: {$totalAmount-$totalTaxAmount|crmMoney:$currency}
141c8460 126{/if}
79d001a2
PB
127
128{foreach from=$dataArray item=value key=priceset}
7cf82823 129{if $priceset || $priceset == 0}
42b37f89 130{$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
7cf82823 131{else}
42b37f89 132{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
6a488035
TO
133{/if}
134{/foreach}
135{/if}
79d001a2
PB
136{/if}
137
ff708ff0 138{if !empty($amount) && !$lineItem}
6a488035
TO
139{foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}
140{/foreach}
141{/if}
79d001a2 142
a4fd2c03 143{if $totalTaxAmount}
79d001a2
PB
144{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
145{/if}
ff708ff0 146{if !empty($isPrimary)}
81f3d017 147
ff708ff0 148{if !empty($balanceAmount)}{ts}Total Paid{/ts}{else}{ts}Total Amount{/ts}{/if}: {if !empty($totalAmount)}{$totalAmount|crmMoney}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}
6a488035 149
ff708ff0 150{if !empty($balanceAmount)}
81f3d017
PJ
151{ts}Balance{/ts}: {$balanceAmount|crmMoney}
152{/if}
6a488035 153
ff708ff0 154{if !empty($pricesetFieldsCount) }
6a488035
TO
155 {assign var="count" value= 0}
156 {foreach from=$lineItem item=pcount}
157 {assign var="lineItemCount" value=0}
158 {if $pcount neq 'skip'}
159 {foreach from=$pcount item=p_count}
160 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
161 {/foreach}
162 {if $lineItemCount < 1 }
163 {assign var="lineItemCount" value=1}
011aeb62 164 {/if}
6a488035
TO
165 {assign var="count" value=$count+$lineItemCount}
166 {/if}
167 {/foreach}
168
169{ts}Total Participants{/ts}: {$count}
170{/if}
011aeb62 171
f634801a 172{if $is_pay_later}
6a488035 173
ff708ff0 174==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
175
176{$pay_later_receipt}
ff708ff0 177==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
178
179{/if}
180
181{if $register_date}
182{ts}Registration Date{/ts}: {$register_date|crmDate}
183{/if}
184{if $receive_date}
185{ts}Transaction Date{/ts}: {$receive_date|crmDate}
186{/if}
ff708ff0 187{if !empty($financialTypeName)}
b956b310 188{ts}Financial Type{/ts}: {$financialTypeName}
6a488035 189{/if}
ff708ff0 190{if !empty($trxn_id)}
6a488035
TO
191{ts}Transaction #{/ts}: {$trxn_id}
192{/if}
ff708ff0 193{if !empty($paidBy)}
6a488035
TO
194{ts}Paid By{/ts}: {$paidBy}
195{/if}
ff708ff0 196{if !empty($checkNumber)}
6a488035
TO
197{ts}Check Number{/ts}: {$checkNumber}
198{/if}
ff708ff0 199{if !empty($billingName)}
6a488035 200
ff708ff0 201==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
202
203{ts}Billing Name and Address{/ts}
204
ff708ff0 205==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
206
207{$billingName}
208{$address}
209{/if}
210
ff708ff0 211{if !empty($credit_card_type)}
6a488035
TO
212===========================================================
213{ts}Credit Card Information{/ts}
214
ff708ff0 215==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
216
217{$credit_card_type}
218{$credit_card_number}
219{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
220{/if}
221{/if}
222{/if} {* End of conditional section for Paid events *}
223
ff708ff0
SL
224{if !empty($customPre)}
225==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
226
227{$customPre_grouptitle}
ff708ff0 228==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
229
230{foreach from=$customPre item=value key=customName}
ff708ff0 231{if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
6a488035
TO
232{$customName}: {$value}
233{/if}
234{/foreach}
235{/if}
236
ff708ff0
SL
237{if !empty($customPost)}
238==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
239
240{$customPost_grouptitle}
ff708ff0 241==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
242
243{foreach from=$customPost item=value key=customName}
ff708ff0 244{if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
6a488035
TO
245{$customName}: {$value}
246{/if}
247{/foreach}
248{/if}
ff708ff0 249{if !empty($customProfile)}
6a488035
TO
250
251{foreach from=$customProfile item=value key=customName}
ff708ff0 252==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
253
254{ts 1=$customName+1}Participant Information - Participant %1{/ts}
255
ff708ff0 256==========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
257
258{foreach from=$value item=val key=field}
259{if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost' }
260{if $field eq 'additionalCustomPre' }
ff708ff0 261----------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if}
6a488035
TO
262
263{$additionalCustomPre_grouptitle}
ff708ff0 264----------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if}
6a488035
TO
265
266{else}
ff708ff0 267----------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if}
6a488035
TO
268
269{$additionalCustomPost_grouptitle}
ff708ff0 270----------------------------------------------------------{if !empty($pricesetFieldsCount) }--------------------{/if}
6a488035
TO
271
272{/if}
273{foreach from=$val item=v key=f}
274{$f}: {$v}
275{/foreach}
276{/if}
277{/foreach}
278{/foreach}
279{/if}
ff708ff0 280{if !empty($customGroup)}
6a488035 281{foreach from=$customGroup item=value key=customName}
ff708ff0 282=========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
283
284{$customName}
ff708ff0 285=========================================================={if !empty($pricesetFieldsCount) }===================={/if}
6a488035
TO
286
287{foreach from=$value item=v key=n}
288{$n}: {$v}
289{/foreach}
290{/foreach}
291{/if}
292
293