Merge pull request #784 from ravishnair/CRM-10397
[civicrm-core.git] / xml / templates / message_templates / event_offline_receipt_text.tpl
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
12 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
24 an email with a link to a web page where you can complete the
25 registration process.{/ts}
26
27 {/if}
28 ==========================================================={if $pricesetFieldsCount }===================={/if}
29
30 {elseif $is_pay_later}
31
32 ==========================================================={if $pricesetFieldsCount }===================={/if}
33
34 {$pay_later_receipt}
35 ==========================================================={if $pricesetFieldsCount }===================={/if}
36
37 {else}
38
39 {ts}Please print this confirmation for your records.{/ts}
40 {/if}
41
42
43 ==========================================================={if $pricesetFieldsCount }===================={/if}
44
45 {ts}Event Information and Location{/ts}
46
47 ==========================================================={if $pricesetFieldsCount }===================={/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 $pricesetFieldsCount }===================={/if}
91
92 {ts}Registered Email{/ts}
93
94 ==========================================================={if $pricesetFieldsCount }===================={/if}
95
96 {$email}
97 {/if}
98 {if $event.is_monetary} {* This section for Paid events only.*}
99
100 ==========================================================={if $pricesetFieldsCount }===================={/if}
101
102 {$event.fee_label}
103 ==========================================================={if $pricesetFieldsCount }===================={/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 $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 {capture assign=ts_participant_total}{if $pricesetFieldsCount }{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 $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}
148 {/if}
149 {assign var="count" value=$count+$lineItemCount}
150 {/if}
151 {/foreach}
152
153 {ts}Total Participants{/ts}: {$count}
154 {/if}
155
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}Financial 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 ===========================================================
197 {ts}Credit Card Information{/ts}
198
199 ==========================================================={if $pricesetFieldsCount }===================={/if}
200
201 {$credit_card_type}
202 {$credit_card_number}
203 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
204 {/if}
205 {/if}
206 {/if} {* End of conditional section for Paid events *}
207
208 {if $customPre}
209 ==========================================================={if $pricesetFieldsCount }===================={/if}
210
211 {$customPre_grouptitle}
212 ==========================================================={if $pricesetFieldsCount }===================={/if}
213
214 {foreach from=$customPre item=value key=customName}
215 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
216 {$customName}: {$value}
217 {/if}
218 {/foreach}
219 {/if}
220
221 {if $customPost}
222 ==========================================================={if $pricesetFieldsCount }===================={/if}
223
224 {$customPost_grouptitle}
225 ==========================================================={if $pricesetFieldsCount }===================={/if}
226
227 {foreach from=$customPost item=value key=customName}
228 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
229 {$customName}: {$value}
230 {/if}
231 {/foreach}
232 {/if}
233 {if $customProfile}
234
235 {foreach from=$customProfile item=value key=customName}
236 ==========================================================={if $pricesetFieldsCount }===================={/if}
237
238 {ts 1=$customName+1}Participant Information - Participant %1{/ts}
239
240 ==========================================================={if $pricesetFieldsCount }===================={/if}
241
242 {foreach from=$value item=val key=field}
243 {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost' }
244 {if $field eq 'additionalCustomPre' }
245 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
246
247 {$additionalCustomPre_grouptitle}
248 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
249
250 {else}
251 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
252
253 {$additionalCustomPost_grouptitle}
254 ----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
255
256 {/if}
257 {foreach from=$val item=v key=f}
258 {$f}: {$v}
259 {/foreach}
260 {/if}
261 {/foreach}
262 {/foreach}
263 {/if}
264 {if $customGroup}
265 {foreach from=$customGroup item=value key=customName}
266 =========================================================={if $pricesetFieldsCount }===================={/if}
267
268 {$customName}
269 =========================================================={if $pricesetFieldsCount }===================={/if}
270
271 {foreach from=$value item=v key=n}
272 {$n}: {$v}
273 {/foreach}
274 {/foreach}
275 {/if}
276
277