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