Use email_greeting where possible in receipts
[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 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}.
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}
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}
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}
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}
30
31 {/if}
32 ==========================================================={if $pricesetFieldsCount }===================={/if}
33
34 {elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
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}
78 {$location.address.1.display|strip_tags:false}
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
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}
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
95 {if $event.is_public}
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}
98 {/if}
99
100 {if $payer.name}
101 You were registered by: {$payer.name}
102 {/if}
103 {if $event.is_monetary} {* This section for Paid events only.*}
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}
119 -----------------------------------------------------------{if $pricesetFieldsCount }-----------------------------------------------------{/if}
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}
124 {if $dataArray}
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}
129 {capture assign=ts_total}{ts}Total{/ts}{/capture}
130 {if $pricesetFieldsCount }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}
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"}
132 -----------------------------------------------------------{if $pricesetFieldsCount }-----------------------------------------------------{/if}
133
134 {foreach from=$value item=line}
135 {if $pricesetFieldsCount }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
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"}
137 {/foreach}
138 ----------------------------------------------------------------------------------------------------------------
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}
140 {/if}
141 {""|string_format:"%120s"}
142 {/foreach}
143 {""|string_format:"%120s"}
144
145 {if $dataArray}
146 {ts}Amount before Tax{/ts}: {$totalAmount-$totalTaxAmount|crmMoney:$currency}
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 $amounts && !$lineItem}
159 {foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label}
160 {/foreach}
161 {/if}
162
163 {if $totalTaxAmount}
164 {ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
165 {/if}
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}
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 $receive_date}
192 {ts}Transaction Date{/ts}: {$receive_date|crmDate}
193 {/if}
194 {if $financialTypeName}
195 {ts}Financial Type{/ts}: {$financialTypeName}
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}
206 {if $contributeMode ne 'notify' and !$isAmountzero and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and !$isOnWaitlist and !$isRequireApproval}
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
251 {$customPost_grouptitle.$j}
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}
296
297 {if $event.allow_selfcancelxfer }
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}
299 {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
300 {ts}Transfer or cancel your registration:{/ts} {$selfService}
301 {/if}