Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
3 | <head> | |
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
5 | <title></title> | |
6 | </head> | |
7 | <body> | |
8 | ||
9 | {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} | |
10 | {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} | |
11 | {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} | |
12 | ||
cb342529 | 13 | <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> |
6a488035 TO |
14 | |
15 | <!-- BEGIN HEADER --> | |
16 | <!-- You can add table row(s) here with logo or other header elements --> | |
17 | <!-- END HEADER --> | |
18 | ||
19 | <!-- BEGIN CONTENT --> | |
20 | ||
21 | <tr> | |
22 | <td> | |
e74e138c | 23 | {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if} |
ff708ff0 | 24 | {if !empty($receipt_text)} |
6a488035 TO |
25 | <p>{$receipt_text|htmlize}</p> |
26 | {/if} | |
27 | ||
28 | {if $is_pay_later} | |
ff708ff0 | 29 | <p>{if isset($pay_later_receipt)}{$pay_later_receipt}{/if}</p> {* FIXME: this might be text rather than HTML *} |
6a488035 TO |
30 | {/if} |
31 | ||
32 | </td> | |
33 | </tr> | |
34 | </table> | |
cb342529 | 35 | <table style="width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;"> |
6a488035 TO |
36 | |
37 | {if $membership_assign && !$useForMember} | |
38 | <tr> | |
39 | <th {$headerStyle}> | |
40 | {ts}Membership Information{/ts} | |
41 | </th> | |
42 | </tr> | |
43 | <tr> | |
44 | <td {$labelStyle}> | |
45 | {ts}Membership Type{/ts} | |
46 | </td> | |
47 | <td {$valueStyle}> | |
48 | {$membership_name} | |
49 | </td> | |
50 | </tr> | |
51 | {if $mem_start_date} | |
52 | <tr> | |
53 | <td {$labelStyle}> | |
54 | {ts}Membership Start Date{/ts} | |
55 | </td> | |
56 | <td {$valueStyle}> | |
57 | {$mem_start_date|crmDate} | |
58 | </td> | |
59 | </tr> | |
60 | {/if} | |
61 | {if $mem_end_date} | |
62 | <tr> | |
63 | <td {$labelStyle}> | |
64 | {ts}Membership End Date{/ts} | |
65 | </td> | |
66 | <td {$valueStyle}> | |
67 | {$mem_end_date|crmDate} | |
68 | </td> | |
69 | </tr> | |
70 | {/if} | |
71 | {/if} | |
72 | ||
73 | ||
74 | {if $amount} | |
75 | <tr> | |
76 | <th {$headerStyle}> | |
77 | {ts}Membership Fee{/ts} | |
78 | </th> | |
79 | </tr> | |
80 | ||
ff708ff0 | 81 | {if !$useForMember and isset($membership_amount) and !empty($is_quick_config)} |
6a488035 TO |
82 | |
83 | <tr> | |
84 | <td {$labelStyle}> | |
85 | {ts 1=$membership_name}%1 Membership{/ts} | |
86 | </td> | |
87 | <td {$valueStyle}> | |
88 | {$membership_amount|crmMoney} | |
89 | </td> | |
90 | </tr> | |
735eaff9 | 91 | {if $amount && !$is_separate_payment } |
6a488035 TO |
92 | <tr> |
93 | <td {$labelStyle}> | |
94 | {ts}Contribution Amount{/ts} | |
95 | </td> | |
96 | <td {$valueStyle}> | |
97 | {$amount|crmMoney} | |
98 | </td> | |
99 | </tr> | |
6a488035 | 100 | <tr> |
58d8c7e2 | 101 | <td {$labelStyle}> |
102 | {ts}Total{/ts} | |
103 | </td> | |
104 | <td {$valueStyle}> | |
105 | {$amount+$membership_amount|crmMoney} | |
106 | </td> | |
6a488035 | 107 | </tr> |
735eaff9 | 108 | {/if} |
6a488035 | 109 | |
ff708ff0 | 110 | {elseif empty($useForMember) && !empty($lineItem) and $priceSetID and empty($is_quick_config)} |
6a488035 TO |
111 | |
112 | {foreach from=$lineItem item=value key=priceset} | |
113 | <tr> | |
114 | <td colspan="2" {$valueStyle}> | |
115 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
116 | <tr> | |
117 | <th>{ts}Item{/ts}</th> | |
118 | <th>{ts}Qty{/ts}</th> | |
119 | <th>{ts}Each{/ts}</th> | |
120 | <th>{ts}Total{/ts}</th> | |
121 | </tr> | |
122 | {foreach from=$value item=line} | |
123 | <tr> | |
124 | <td> | |
125 | {$line.description|truncate:30:"..."} | |
126 | </td> | |
127 | <td> | |
128 | {$line.qty} | |
129 | </td> | |
130 | <td> | |
131 | {$line.unit_price|crmMoney} | |
132 | </td> | |
133 | <td> | |
134 | {$line.line_total|crmMoney} | |
135 | </td> | |
136 | </tr> | |
137 | {/foreach} | |
138 | </table> | |
139 | </td> | |
140 | </tr> | |
141 | {/foreach} | |
142 | <tr> | |
143 | <td {$labelStyle}> | |
144 | {ts}Total Amount{/ts} | |
145 | </td> | |
146 | <td {$valueStyle}> | |
147 | {$amount|crmMoney} | |
148 | </td> | |
149 | </tr> | |
150 | ||
151 | {else} | |
ff708ff0 | 152 | {if $useForMember && $lineItem and empty($is_quick_config)} |
6a488035 TO |
153 | {foreach from=$lineItem item=value key=priceset} |
154 | <tr> | |
155 | <td colspan="2" {$valueStyle}> | |
156 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
157 | <tr> | |
158 | <th>{ts}Item{/ts}</th> | |
159 | <th>{ts}Fee{/ts}</th> | |
ff708ff0 | 160 | {if !empty($dataArray)} |
79d001a2 PB |
161 | <th>{ts}SubTotal{/ts}</th> |
162 | <th>{ts}Tax Rate{/ts}</th> | |
163 | <th>{ts}Tax Amount{/ts}</th> | |
164 | <th>{ts}Total{/ts}</th> | |
165 | {/if} | |
011aeb62 | 166 | <th>{ts}Membership Start Date{/ts}</th> |
167 | <th>{ts}Membership End Date{/ts}</th> | |
6a488035 TO |
168 | </tr> |
169 | {foreach from=$value item=line} | |
170 | <tr> | |
171 | <td> | |
172 | {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:"..."}</div>{/if} | |
173 | </td> | |
174 | <td> | |
175 | {$line.line_total|crmMoney} | |
176 | </td> | |
ff708ff0 | 177 | {if !empty($dataArray)} |
79d001a2 PB |
178 | <td> |
179 | {$line.unit_price*$line.qty|crmMoney} | |
180 | </td> | |
ff708ff0 | 181 | {if isset($line.tax_rate) and ($line.tax_rate != "" || $line.tax_amount != "")} |
7cf82823 PB |
182 | <td> |
183 | {$line.tax_rate|string_format:"%.2f"}% | |
184 | </td> | |
185 | <td> | |
186 | {$line.tax_amount|crmMoney} | |
187 | </td> | |
188 | {else} | |
189 | <td></td> | |
190 | <td></td> | |
191 | {/if} | |
79d001a2 | 192 | <td> |
7cf82823 | 193 | {$line.line_total+$line.tax_amount|crmMoney} |
79d001a2 PB |
194 | </td> |
195 | {/if} | |
6a488035 TO |
196 | <td> |
197 | {$line.start_date} | |
198 | </td> | |
011aeb62 | 199 | <td> |
6a488035 TO |
200 | {$line.end_date} |
201 | </td> | |
202 | </tr> | |
203 | {/foreach} | |
204 | </table> | |
205 | </td> | |
206 | </tr> | |
207 | {/foreach} | |
ff708ff0 | 208 | {if !empty($dataArray)} |
79d001a2 PB |
209 | <tr> |
210 | <td {$labelStyle}> | |
d8f8b40f | 211 | {ts}Amount Before Tax:{/ts} |
79d001a2 PB |
212 | </td> |
213 | <td {$valueStyle}> | |
214 | {$amount-$totalTaxAmount|crmMoney} | |
215 | </td> | |
216 | </tr> | |
217 | {foreach from=$dataArray item=value key=priceset} | |
218 | <tr> | |
7cf82823 | 219 | {if $priceset || $priceset == 0} |
b0800b2c | 220 | <td> {if isset($taxTerm)}{$taxTerm}{/if} {$priceset|string_format:"%.2f"}%</td> |
79d001a2 | 221 | <td> {$value|crmMoney:$currency}</td> |
7cf82823 | 222 | {else} |
b0800b2c | 223 | <td> {ts}NO{/ts} {if isset($taxTerm)}{$taxTerm}{/if}</td> |
79d001a2 PB |
224 | <td> {$value|crmMoney:$currency}</td> |
225 | {/if} | |
226 | </tr> | |
227 | {/foreach} | |
228 | {/if} | |
229 | {/if} | |
ff708ff0 | 230 | {if isset($totalTaxAmount)} |
79d001a2 PB |
231 | <tr> |
232 | <td {$labelStyle}> | |
233 | {ts}Total Tax Amount{/ts} | |
234 | </td> | |
235 | <td {$valueStyle}> | |
236 | {$totalTaxAmount|crmMoney:$currency} | |
237 | </td> | |
238 | </tr> | |
6a488035 TO |
239 | {/if} |
240 | <tr> | |
241 | <td {$labelStyle}> | |
242 | {ts}Amount{/ts} | |
243 | </td> | |
244 | <td {$valueStyle}> | |
ff708ff0 | 245 | {$amount|crmMoney} {if isset($amount_level)} - {$amount_level}{/if} |
6a488035 TO |
246 | </td> |
247 | </tr> | |
248 | ||
249 | {/if} | |
250 | ||
251 | ||
ff708ff0 | 252 | {elseif isset($membership_amount)} |
6a488035 TO |
253 | |
254 | ||
255 | <tr> | |
256 | <th {$headerStyle}> | |
257 | {ts}Membership Fee{/ts} | |
258 | </th> | |
259 | </tr> | |
260 | <tr> | |
261 | <td {$labelStyle}> | |
262 | {ts 1=$membership_name}%1 Membership{/ts} | |
263 | </td> | |
264 | <td {$valueStyle}> | |
265 | {$membership_amount|crmMoney} | |
266 | </td> | |
267 | </tr> | |
268 | ||
269 | ||
270 | {/if} | |
271 | ||
ff708ff0 | 272 | {if !empty($receive_date)} |
6a488035 TO |
273 | <tr> |
274 | <td {$labelStyle}> | |
275 | {ts}Date{/ts} | |
276 | </td> | |
277 | <td {$valueStyle}> | |
278 | {$receive_date|crmDate} | |
279 | </td> | |
280 | </tr> | |
281 | {/if} | |
282 | ||
ff708ff0 | 283 | {if !empty($is_monetary) and !empty($trxn_id)} |
6a488035 TO |
284 | <tr> |
285 | <td {$labelStyle}> | |
286 | {ts}Transaction #{/ts} | |
287 | </td> | |
288 | <td {$valueStyle}> | |
289 | {$trxn_id} | |
290 | </td> | |
291 | </tr> | |
292 | {/if} | |
293 | ||
ff708ff0 | 294 | {if !empty($membership_trx_id)} |
6a488035 TO |
295 | <tr> |
296 | <td {$labelStyle}> | |
297 | {ts}Membership Transaction #{/ts} | |
298 | </td> | |
299 | <td {$valueStyle}> | |
300 | {$membership_trx_id} | |
301 | </td> | |
302 | </tr> | |
303 | {/if} | |
ff708ff0 | 304 | {if !empty($is_recur)} |
6a488035 TO |
305 | <tr> |
306 | <td colspan="2" {$labelStyle}> | |
f926d56f MWMC |
307 | {ts}This membership will be renewed automatically.{/ts} |
308 | {if $cancelSubscriptionUrl} | |
309 | {ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href="%1">visiting this web page</a>.{/ts} | |
310 | {/if} | |
6a488035 TO |
311 | </td> |
312 | </tr> | |
4072b132 ACD |
313 | {if $updateSubscriptionBillingUrl} |
314 | <tr> | |
315 | <td colspan="2" {$labelStyle}> | |
316 | {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href="%1">visiting this web page</a>.{/ts} | |
317 | </td> | |
318 | </tr> | |
319 | {/if} | |
6a488035 TO |
320 | {/if} |
321 | ||
322 | {if $honor_block_is_active} | |
323 | <tr> | |
324 | <th {$headerStyle}> | |
1421174e | 325 | {$soft_credit_type} |
6a488035 TO |
326 | </th> |
327 | </tr> | |
1421174e | 328 | {foreach from=$honoreeProfile item=value key=label} |
329 | <tr> | |
330 | <td {$labelStyle}> | |
331 | {$label} | |
332 | </td> | |
333 | <td {$valueStyle}> | |
334 | {$value} | |
335 | </td> | |
336 | </tr> | |
337 | {/foreach} | |
6a488035 TO |
338 | {/if} |
339 | ||
ff708ff0 | 340 | {if !empty($pcpBlock)} |
6a488035 TO |
341 | <tr> |
342 | <th {$headerStyle}> | |
343 | {ts}Personal Campaign Page{/ts} | |
344 | </th> | |
345 | </tr> | |
346 | <tr> | |
347 | <td {$labelStyle}> | |
348 | {ts}Display In Honor Roll{/ts} | |
349 | </td> | |
350 | <td {$valueStyle}> | |
351 | {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if} | |
352 | </td> | |
353 | </tr> | |
354 | {if $pcp_roll_nickname} | |
355 | <tr> | |
356 | <td {$labelStyle}> | |
357 | {ts}Nickname{/ts} | |
358 | </td> | |
359 | <td {$valueStyle}> | |
360 | {$pcp_roll_nickname} | |
361 | </td> | |
362 | </tr> | |
363 | {/if} | |
364 | {if $pcp_personal_note} | |
365 | <tr> | |
366 | <td {$labelStyle}> | |
367 | {ts}Personal Note{/ts} | |
368 | </td> | |
369 | <td {$valueStyle}> | |
370 | {$pcp_personal_note} | |
371 | </td> | |
372 | </tr> | |
373 | {/if} | |
374 | {/if} | |
375 | ||
ff708ff0 | 376 | {if !empty($onBehalfProfile)} |
6a488035 TO |
377 | <tr> |
378 | <th {$headerStyle}> | |
379 | {$onBehalfProfile_grouptitle} | |
380 | </th> | |
381 | </tr> | |
382 | {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName} | |
383 | <tr> | |
384 | <td {$labelStyle}> | |
385 | {$onBehalfName} | |
386 | </td> | |
387 | <td {$valueStyle}> | |
388 | {$onBehalfValue} | |
389 | </td> | |
390 | </tr> | |
391 | {/foreach} | |
392 | {/if} | |
393 | ||
ff708ff0 | 394 | {if !empty($billingName)} |
6a488035 | 395 | <tr> |
207229af | 396 | <th {$headerStyle}> |
397 | {ts}Billing Name and Address{/ts} | |
398 | </th> | |
399 | </tr> | |
400 | <tr> | |
6a488035 | 401 | <td colspan="2" {$valueStyle}> |
207229af | 402 | {$billingName}<br /> |
403 | {$address|nl2br}<br /> | |
404 | {$email} | |
6a488035 | 405 | </td> |
207229af | 406 | </tr> |
ff708ff0 | 407 | {elseif !empty($email)} |
207229af | 408 | <tr> |
6a488035 | 409 | <th {$headerStyle}> |
207229af | 410 | {ts}Registered Email{/ts} |
6a488035 | 411 | </th> |
207229af | 412 | </tr> |
413 | <tr> | |
6a488035 | 414 | <td colspan="2" {$valueStyle}> |
207229af | 415 | {$email} |
6a488035 | 416 | </td> |
207229af | 417 | </tr> |
418 | {/if} | |
6a488035 | 419 | |
ff708ff0 | 420 | {if !empty($credit_card_type)} |
6a488035 TO |
421 | <tr> |
422 | <th {$headerStyle}> | |
423 | {ts}Credit Card Information{/ts} | |
424 | </th> | |
425 | </tr> | |
426 | <tr> | |
427 | <td colspan="2" {$valueStyle}> | |
428 | {$credit_card_type}<br /> | |
429 | {$credit_card_number}<br /> | |
430 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br /> | |
431 | </td> | |
432 | </tr> | |
433 | {/if} | |
434 | ||
ff708ff0 | 435 | {if !empty($selectPremium)} |
6a488035 TO |
436 | <tr> |
437 | <th {$headerStyle}> | |
438 | {ts}Premium Information{/ts} | |
439 | </th> | |
440 | </tr> | |
441 | <tr> | |
442 | <td colspan="2" {$labelStyle}> | |
443 | {$product_name} | |
444 | </td> | |
445 | </tr> | |
446 | {if $option} | |
447 | <tr> | |
448 | <td {$labelStyle}> | |
449 | {ts}Option{/ts} | |
450 | </td> | |
451 | <td {$valueStyle}> | |
452 | {$option} | |
453 | </td> | |
454 | </tr> | |
455 | {/if} | |
456 | {if $sku} | |
457 | <tr> | |
458 | <td {$labelStyle}> | |
459 | {ts}SKU{/ts} | |
460 | </td> | |
461 | <td {$valueStyle}> | |
462 | {$sku} | |
463 | </td> | |
464 | </tr> | |
465 | {/if} | |
466 | {if $start_date} | |
467 | <tr> | |
468 | <td {$labelStyle}> | |
469 | {ts}Start Date{/ts} | |
470 | </td> | |
471 | <td {$valueStyle}> | |
472 | {$start_date|crmDate} | |
473 | </td> | |
474 | </tr> | |
475 | {/if} | |
476 | {if $end_date} | |
477 | <tr> | |
478 | <td {$labelStyle}> | |
479 | {ts}End Date{/ts} | |
480 | </td> | |
481 | <td {$valueStyle}> | |
482 | {$end_date|crmDate} | |
483 | </td> | |
484 | </tr> | |
485 | {/if} | |
ff708ff0 | 486 | {if !empty($contact_email) OR !empty($contact_phone)} |
6a488035 TO |
487 | <tr> |
488 | <td colspan="2" {$valueStyle}> | |
489 | <p>{ts}For information about this premium, contact:{/ts}</p> | |
ff708ff0 | 490 | {if !empty($contact_email)} |
6a488035 TO |
491 | <p>{$contact_email}</p> |
492 | {/if} | |
ff708ff0 | 493 | {if !empty($contact_phone)} |
6a488035 TO |
494 | <p>{$contact_phone}</p> |
495 | {/if} | |
496 | </td> | |
497 | </tr> | |
498 | {/if} | |
ff708ff0 | 499 | {if !empty($is_deductible) AND !empty($price)} |
6a488035 TO |
500 | <tr> |
501 | <td colspan="2" {$valueStyle}> | |
502 | <p>{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p> | |
503 | </td> | |
504 | </tr> | |
505 | {/if} | |
506 | {/if} | |
507 | ||
ff708ff0 | 508 | {if !empty($customPre)} |
6a488035 TO |
509 | <tr> |
510 | <th {$headerStyle}> | |
511 | {$customPre_grouptitle} | |
512 | </th> | |
513 | </tr> | |
514 | {foreach from=$customPre item=customValue key=customName} | |
ff708ff0 | 515 | {if (!empty($trackingFields) and ! in_array($customName, $trackingFields)) or empty($trackingFields)} |
6a488035 TO |
516 | <tr> |
517 | <td {$labelStyle}> | |
518 | {$customName} | |
519 | </td> | |
520 | <td {$valueStyle}> | |
521 | {$customValue} | |
522 | </td> | |
523 | </tr> | |
524 | {/if} | |
525 | {/foreach} | |
526 | {/if} | |
527 | ||
ff708ff0 | 528 | {if !empty($customPost)} |
6a488035 TO |
529 | <tr> |
530 | <th {$headerStyle}> | |
531 | {$customPost_grouptitle} | |
532 | </th> | |
533 | </tr> | |
534 | {foreach from=$customPost item=customValue key=customName} | |
ff708ff0 | 535 | {if (!empty($trackingFields) and ! in_array($customName, $trackingFields)) or empty($trackingFields)} |
6a488035 TO |
536 | <tr> |
537 | <td {$labelStyle}> | |
538 | {$customName} | |
539 | </td> | |
540 | <td {$valueStyle}> | |
541 | {$customValue} | |
542 | </td> | |
543 | </tr> | |
544 | {/if} | |
545 | {/foreach} | |
546 | {/if} | |
547 | ||
548 | </table> | |
6a488035 TO |
549 | |
550 | </body> | |
551 | </html> |