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