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