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