Merge pull request #22971 from eileenmcnaughton/pay_later
[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|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}
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|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
58 {assign var='group_by_day' value=$session.start_date}
59
60 {$group_by_day|date_format:"%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 File:{/ts} {$icalFeed}
94 {/if}
95
96 {if !empty($payer.name)}
97 You were registered by: {$payer.name}
98 {/if}
99 {if !empty($event.is_monetary) and empty($isRequireApproval)} {* This section for Paid events only.*}
100
101 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
102
103 {if !empty ($event.fee_label)}{$event.fee_label}{/if}
104 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
105
106 {if !empty($lineItem)}{foreach from=$lineItem item=value key=priceset}
107
108 {if $value neq 'skip'}
109 {if !empty($isPrimary)}
110 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
111 {ts 1=$priceset+1}Participant %1{/ts} {if !empty($part.$priceset)}{$part.$priceset.info}{/if}
112
113 {/if}
114 {/if}
115 -----------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if}
116
117 {capture assign=ts_item}{ts}Item{/ts}{/capture}
118 {capture assign=ts_qty}{ts}Qty{/ts}{/capture}
119 {capture assign=ts_each}{ts}Each{/ts}{/capture}
120 {if !empty($dataArray)}
121 {capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
122 {capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
123 {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
124 {/if}
125 {capture assign=ts_total}{ts}Total{/ts}{/capture}
126 {if !empty($pricesetFieldsCount) }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}
127 {$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}
128 -----------------------------------------------------------{if !empty($pricesetFieldsCount)}-----------------------------------------------------{/if}
129
130 {foreach from=$value item=line}
131 {if !empty($pricesetFieldsCount) }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
132 {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}
133 {/foreach}
134 ----------------------------------------------------------------------------------------------------------------
135 {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}
136 {/if}
137 {""|string_format:"%120s"}
138 {/foreach}
139 {""|string_format:"%120s"}
140
141 {if !empty($dataArray)}
142 {if isset($totalAmount) and isset($totalTaxAmount)}
143 {ts}Amount before Tax{/ts}: {$totalAmount-$totalTaxAmount|crmMoney:$currency}
144 {/if}
145
146 {foreach from=$dataArray item=value key=priceset}
147 {if $priceset || $priceset == 0}
148 {$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
149 {else}
150 {ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
151 {/if}
152 {/foreach}
153 {/if}
154 {/if}
155
156 {if !empty($amounts) && empty($lineItem)}
157 {foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label}
158 {/foreach}
159 {/if}
160
161 {if isset($totalTaxAmount)}
162 {ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
163 {/if}
164 {if !empty($isPrimary) }
165
166 {ts}Total Amount{/ts}: {if !empty($totalAmount)}{$totalAmount|crmMoney:$currency}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}
167
168 {if !empty($pricesetFieldsCount) }
169 {assign var="count" value= 0}
170 {foreach from=$lineItem item=pcount}
171 {assign var="lineItemCount" value=0}
172 {if $pcount neq 'skip'}
173 {foreach from=$pcount item=p_count}
174 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
175 {/foreach}
176 {if $lineItemCount < 1 }
177 {assign var="lineItemCount" value=1}
178 {/if}
179 {assign var="count" value=$count+$lineItemCount}
180 {/if}
181 {/foreach}
182
183 {ts}Total Participants{/ts}: {$count}
184 {/if}
185
186 {if $register_date}
187 {ts}Registration Date{/ts}: {$register_date|crmDate}
188 {/if}
189 {if !empty($receive_date)}
190 {ts}Transaction Date{/ts}: {$receive_date|crmDate}
191 {/if}
192 {if !empty($financialTypeName)}
193 {ts}Financial Type{/ts}: {$financialTypeName}
194 {/if}
195 {if !empty($trxn_id)}
196 {ts}Transaction #{/ts}: {$trxn_id}
197 {/if}
198 {if !empty($paidBy)}
199 {ts}Paid By{/ts}: {$paidBy}
200 {/if}
201 {if !empty($checkNumber)}
202 {ts}Check Number{/ts}: {$checkNumber}
203 {/if}
204 {if !empty($billingName)}
205
206 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
207
208 {ts}Billing Name and Address{/ts}
209
210 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
211
212 {$billingName}
213 {$address}
214 {/if}
215
216 {if !empty($credit_card_type)}
217 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
218
219 {ts}Credit Card Information{/ts}
220
221 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
222
223 {$credit_card_type}
224 {$credit_card_number}
225 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
226 {/if}
227 {/if}
228 {/if} {* End of conditional section for Paid events *}
229
230 {if !empty($customPre)}
231 {foreach from=$customPre item=customPr key=i}
232 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
233
234 {$customPre_grouptitle.$i}
235 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
236
237 {foreach from=$customPr item=customValue key=customName}
238 {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
239 {$customName}: {$customValue}
240 {/if}
241 {/foreach}
242 {/foreach}
243 {/if}
244
245 {if !empty($customPost)}
246 {foreach from=$customPost item=customPos key=j}
247 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
248
249 {$customPost_grouptitle.$j}
250 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
251
252 {foreach from=$customPos item=customValue key=customName}
253 {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
254 {$customName}: {$customValue}
255 {/if}
256 {/foreach}
257 {/foreach}
258 {/if}
259 {if !empty($customProfile)}
260
261 {foreach from=$customProfile.profile item=eachParticipant key=participantID}
262 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
263
264 {ts 1=$participantID+2}Participant Information - Participant %1{/ts}
265
266 ==========================================================={if !empty($pricesetFieldsCount)}===================={/if}
267
268 {foreach from=$eachParticipant item=eachProfile key=pid}
269 ----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if}
270
271 {$customProfile.title.$pid}
272 ----------------------------------------------------------{if !empty($pricesetFieldsCount)}--------------------{/if}
273
274 {foreach from=$eachProfile item=val key=field}
275 {foreach from=$val item=v key=f}
276 {$field}: {$v}
277 {/foreach}
278 {/foreach}
279 {/foreach}
280 {/foreach}
281 {/if}
282
283 {if !empty($event.allow_selfcancelxfer) }
284 {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}
285 {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
286 {ts}Transfer or cancel your registration:{/ts} {$selfService}
287 {/if}