Merge pull request #8606 from jitendrapurohit/CRM-18975
[civicrm-core.git] / xml / templates / message_templates / event_online_receipt_text.tpl
CommitLineData
2c8a0d6d 1{contact.email_greeting},
6a488035
TO
2
3{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
4{$event.confirm_email_text}
5
6{else}
a0b8d522 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}.
6a488035
TO
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}
0865a4ed 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}
6a488035
TO
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}
0865a4ed 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}
6a488035
TO
31
32{/if}
33==========================================================={if $pricesetFieldsCount }===================={/if}
34
7d92d486 35{elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
6a488035
TO
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{if $location.address.1.name}
80
81{$location.address.1.name}
82{/if}
83{if $location.address.1.street_address}{$location.address.1.street_address}
84{/if}
85{if $location.address.1.supplemental_address_1}{$location.address.1.supplemental_address_1}
86{/if}
87{if $location.address.1.supplemental_address_2}{$location.address.1.supplemental_address_2}
88{/if}
89{if $location.address.1.city}{$location.address.1.city}, {$location.address.1.state_province} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}
90{/if}
91
92{/if}{*End of isShowLocation condition*}
93
94{if $location.phone.1.phone || $location.email.1.email}
95
96{ts}Event Contacts:{/ts}
97{foreach from=$location.phone item=phone}
98{if $phone.phone}
99
5d9ebb64 100{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
101{/foreach}
102{foreach from=$location.email item=eventEmail}
103{if $eventEmail.email}
104
105{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
106{/if}
107
ebf2b57b 108{if $event.is_public}
6a488035
TO
109{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
110{ts}Download iCalendar File:{/ts} {$icalFeed}
4de4dbe9 111{/if}
6a488035
TO
112
113{if $payer.name}
114You were registered by: {$payer.name}
115{/if}
116{if $event.is_monetary} {* This section for Paid events only.*}
117
118==========================================================={if $pricesetFieldsCount }===================={/if}
119
120{$event.fee_label}
121==========================================================={if $pricesetFieldsCount }===================={/if}
122
123{if $lineItem}{foreach from=$lineItem item=value key=priceset}
124
125{if $value neq 'skip'}
126{if $isPrimary}
127{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
128{ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
129
130{/if}
131{/if}
75b065ce 132-----------------------------------------------------------{if $pricesetFieldsCount }-----------------------------------------------------{/if}
6a488035
TO
133
134{capture assign=ts_item}{ts}Item{/ts}{/capture}
135{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
136{capture assign=ts_each}{ts}Each{/ts}{/capture}
7cf82823 137{if $dataArray}
79d001a2
PB
138{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
139{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
140{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
141{/if}
6a488035
TO
142{capture assign=ts_total}{ts}Total{/ts}{/capture}
143{if $pricesetFieldsCount }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}
7cf82823 144{$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"}
75b065ce 145-----------------------------------------------------------{if $pricesetFieldsCount }-----------------------------------------------------{/if}
6a488035
TO
146
147{foreach from=$value item=line}
148{if $pricesetFieldsCount }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
7cf82823 149{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"}
79d001a2 150{/foreach}
75b065ce 151----------------------------------------------------------------------------------------------------------------
e7a338d9 152{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}
79d001a2 153{/if}
75b065ce 154{""|string_format:"%120s"}
6a488035 155{/foreach}
75b065ce 156{""|string_format:"%120s"}
79d001a2 157
7cf82823 158{if $dataArray}
79d001a2
PB
159{ts}Amount before Tax{/ts}: {$totalAmount-$totalTaxAmount|crmMoney:$currency}
160
161{foreach from=$dataArray item=value key=priceset}
7cf82823 162{if $priceset || $priceset == 0}
03b412ae 163{$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
7cf82823 164{else}
03b412ae 165{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
6a488035
TO
166{/if}
167{/foreach}
168{/if}
79d001a2
PB
169{/if}
170
6a488035
TO
171{if $amounts && !$lineItem}
172{foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label}
173{/foreach}
174{/if}
79d001a2
PB
175
176{if $totalTaxAmount}
177{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
178{/if}
6a488035
TO
179{if $isPrimary }
180
181{ts}Total Amount{/ts}: {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
182
183{if $pricesetFieldsCount }
184 {assign var="count" value= 0}
185 {foreach from=$lineItem item=pcount}
186 {assign var="lineItemCount" value=0}
187 {if $pcount neq 'skip'}
188 {foreach from=$pcount item=p_count}
189 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
190 {/foreach}
191 {if $lineItemCount < 1 }
192 {assign var="lineItemCount" value=1}
a235e13c 193 {/if}
6a488035
TO
194 {assign var="count" value=$count+$lineItemCount}
195 {/if}
196 {/foreach}
197
198{ts}Total Participants{/ts}: {$count}
199{/if}
a235e13c 200
6a488035
TO
201{if $register_date}
202{ts}Registration Date{/ts}: {$register_date|crmDate}
203{/if}
204{if $receive_date}
205{ts}Transaction Date{/ts}: {$receive_date|crmDate}
206{/if}
b956b310 207{if $financialTypeName}
208{ts}Financial Type{/ts}: {$financialTypeName}
6a488035
TO
209{/if}
210{if $trxn_id}
211{ts}Transaction #{/ts}: {$trxn_id}
212{/if}
213{if $paidBy}
214{ts}Paid By{/ts}: {$paidBy}
215{/if}
216{if $checkNumber}
217{ts}Check Number{/ts}: {$checkNumber}
218{/if}
e45f6ab0 219{if $contributeMode ne 'notify' and !$isAmountzero and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and !$isOnWaitlist and !$isRequireApproval}
6a488035
TO
220
221==========================================================={if $pricesetFieldsCount }===================={/if}
222
223{ts}Billing Name and Address{/ts}
224
225==========================================================={if $pricesetFieldsCount }===================={/if}
226
227{$billingName}
228{$address}
229{/if}
230
231{if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
232==========================================================={if $pricesetFieldsCount }===================={/if}
233
234{ts}Credit Card Information{/ts}
235
236==========================================================={if $pricesetFieldsCount }===================={/if}
237
238{$credit_card_type}
239{$credit_card_number}
240{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
241{/if}
242{/if}
243{/if} {* End of conditional section for Paid events *}
244
245{if $customPre}
246{foreach from=$customPre item=customPr key=i}
247==========================================================={if $pricesetFieldsCount }===================={/if}
248
249{$customPre_grouptitle.$i}
250==========================================================={if $pricesetFieldsCount }===================={/if}
251
252{foreach from=$customPr item=customValue key=customName}
253{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
254 {$customName}: {$customValue}
255{/if}
256{/foreach}
257{/foreach}
258{/if}
259
260{if $customPost}
261{foreach from=$customPost item=customPos key=j}
262==========================================================={if $pricesetFieldsCount }===================={/if}
263
a235e13c 264{$customPost_grouptitle.$j}
6a488035
TO
265==========================================================={if $pricesetFieldsCount }===================={/if}
266
267{foreach from=$customPos item=customValue key=customName}
268{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
269 {$customName}: {$customValue}
270{/if}
271{/foreach}
272{/foreach}
273{/if}
274{if $customProfile}
275
276{foreach from=$customProfile.profile item=eachParticipant key=participantID}
277==========================================================={if $pricesetFieldsCount }===================={/if}
278
279{ts 1=$participantID+2}Participant Information - Participant %1{/ts}
280
281==========================================================={if $pricesetFieldsCount }===================={/if}
282
283{foreach from=$eachParticipant item=eachProfile key=pid}
284----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
285
286{$customProfile.title.$pid}
287----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
288
289{foreach from=$eachProfile item=val key=field}
290{foreach from=$val item=v key=f}
291{$field}: {$v}
292{/foreach}
293{/foreach}
294{/foreach}
295{/foreach}
296{/if}
297{if $customGroup}
298{foreach from=$customGroup item=value key=customName}
299=========================================================={if $pricesetFieldsCount }===================={/if}
300
301{$customName}
302=========================================================={if $pricesetFieldsCount }===================={/if}
303
304{foreach from=$value item=v key=n}
305{$n}: {$v}
306{/foreach}
307{/foreach}
308{/if}
e3b510fe 309
97d8187a 310{if $event.allow_selfcancelxfer }
adaa01fa 311{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}
97d8187a 312 {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
adaa01fa 313{ts}Transfer or cancel your registration:{/ts} {$selfService}
97d8187a 314{/if}