Merge pull request #22551 from eileenmcnaughton/phpcs
[civicrm-core.git] / xml / templates / message_templates / event_registration_receipt_text.tpl
CommitLineData
56658066
AH
1{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
2
6a488035
TO
3{if $is_pay_later}
4 This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.
5{else}
a221e1e0 6 This is being sent to you as a {if !empty($is_refund)}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.
6a488035
TO
7{/if}
8
9{if $is_pay_later}
ff708ff0 10 {if isset($pay_later_receipt)}{$pay_later_receipt}{/if}
6a488035
TO
11{/if}
12
a221e1e0 13 Your order number is #{$transaction_id}. {if !empty($line_items) && empty($is_refund)} Information about the workshops will be sent separately to each participant.{/if}
6a488035
TO
14 Here's a summary of your transaction placed on {$transaction_date|date_format:"%D %I:%M %p %Z"}:
15
16{if $billing_name}
17===========================================================
18{ts}Billing Name and Address{/ts}
19
20===========================================================
21{$billing_name}
22
23{$billing_street_address}
24
25{$billing_city}, {$billing_state} {$billing_postal_code}
26
27{$email}
28{/if}
29
a221e1e0 30{if !empty($source)}
6a488035
TO
31{$source}
32{/if}
33
34
35{foreach from=$line_items item=line_item}
36{$line_item.event->title} ({$line_item.event->start_date|date_format:"%D"})
37{if $line_item.event->is_show_location}
060625d6 38 {$line_item.location.address.1.display|strip_tags:false}
6a488035
TO
39{/if}{*End of isShowLocation condition*}
40{$line_item.event->start_date|date_format:"%D %I:%M %p"} - {$line_item.event->end_date|date_format:"%I:%M %p"}
41
42 Quantity: {$line_item.num_participants}
43
44{if $line_item.num_participants > 0}
45 {foreach from=$line_item.participants item=participant}
46 {$participant.display_name}
47 {/foreach}
48{/if}
49{if $line_item.num_waiting_participants > 0}
50 Waitlisted:
51 {foreach from=$line_item.waiting_participants item=participant}
52 {$participant.display_name}
53 {/foreach}
54{/if}
55Cost: {$line_item.cost|crmMoney:$currency|string_format:"%10s"}
56Total For This Event: {$line_item.amount|crmMoney:$currency|string_format:"%10s"}
57
58{/foreach}
59
60{if $discounts}
61Subtotal: {$sub_total|crmMoney:$currency|string_format:"%10s"}
62--------------------------------------
63Discounts
64{foreach from=$discounts key=myId item=i}
65 {$i.title}: -{$i.amount|crmMoney:$currency|string_format:"%10s"}
66{/foreach}
67{/if}
68======================================
69Total: {$total|crmMoney:$currency|string_format:"%10s"}
70
71{if $credit_card_type}
72===========================================================
73{ts}Payment Information{/ts}
74
75===========================================================
76{$credit_card_type}
77{$credit_card_number}
78{ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}
79{/if}
80
81 If you have questions about the status of your registration or purchase please feel free to contact us.