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